Skip to content

Commit 39d3368

Browse files
committed
chore: mark jsdom as external to remove warning
1 parent 1df1874 commit 39d3368

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

packages/server/package.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
export default {
2-
build: true
2+
build: true,
3+
rollup: {
4+
externals: ['jsdom']
5+
}
36
}

scripts/package.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ export default class Package {
189189
const config = {
190190
rootDir: this.options.rootDir,
191191
alias: {},
192-
replace: {}
192+
replace: {},
193+
...this.options.rollup
193194
}
194195

195196
// Replace linkedDependencies with their suffixed version

scripts/rollup.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export default function rollupConfig ({
1717
input = 'src/index.js',
1818
replace = {},
1919
alias = {},
20+
externals = [],
2021
resolve = {
2122
only: [
2223
/lodash/
@@ -43,7 +44,9 @@ export default function rollupConfig ({
4344
// Dependencies that will be installed alongise with the nuxt package
4445
...Object.keys(pkg.dependencies || {}),
4546
// Builtin node modules
46-
...builtins
47+
...builtins,
48+
// Explicit externals
49+
...externals
4750
],
4851
plugins: [
4952
aliasPlugin(alias),

0 commit comments

Comments
 (0)