mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +00:00
fix(rollup): temporary ignore rollup-plugin-license deprecated warns
This commit is contained in:
parent
fc1ab1eb44
commit
49a7d0c7f8
@ -7,6 +7,7 @@ import replacePlugin from 'rollup-plugin-replace'
|
||||
import aliasPlugin from 'rollup-plugin-alias'
|
||||
import nodeResolvePlugin from 'rollup-plugin-node-resolve'
|
||||
import defaultsDeep from 'lodash/defaultsDeep'
|
||||
import consola from 'consola'
|
||||
|
||||
import { builtins } from './builtins'
|
||||
|
||||
@ -68,6 +69,12 @@ export default function rollupConfig({
|
||||
`*/`
|
||||
].join('\n')
|
||||
})
|
||||
].concat(plugins)
|
||||
].concat(plugins),
|
||||
onwarn(warning, warn) {
|
||||
if (warning.plugin === 'rollup-plugin-license') {
|
||||
return
|
||||
}
|
||||
consola.warn(warning)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user