mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +00:00
chore: mark jsdom as external to remove warning
This commit is contained in:
parent
1df1874f8a
commit
39d33686f4
@ -1,3 +1,6 @@
|
||||
export default {
|
||||
build: true
|
||||
build: true,
|
||||
rollup: {
|
||||
externals: ['jsdom']
|
||||
}
|
||||
}
|
||||
|
@ -189,7 +189,8 @@ export default class Package {
|
||||
const config = {
|
||||
rootDir: this.options.rootDir,
|
||||
alias: {},
|
||||
replace: {}
|
||||
replace: {},
|
||||
...this.options.rollup
|
||||
}
|
||||
|
||||
// Replace linkedDependencies with their suffixed version
|
||||
|
@ -17,6 +17,7 @@ export default function rollupConfig ({
|
||||
input = 'src/index.js',
|
||||
replace = {},
|
||||
alias = {},
|
||||
externals = [],
|
||||
resolve = {
|
||||
only: [
|
||||
/lodash/
|
||||
@ -43,7 +44,9 @@ export default function rollupConfig ({
|
||||
// Dependencies that will be installed alongise with the nuxt package
|
||||
...Object.keys(pkg.dependencies || {}),
|
||||
// Builtin node modules
|
||||
...builtins
|
||||
...builtins,
|
||||
// Explicit externals
|
||||
...externals
|
||||
],
|
||||
plugins: [
|
||||
aliasPlugin(alias),
|
||||
|
Loading…
Reference in New Issue
Block a user