Skip to content

Commit

Permalink
@rollup/plugin-node-resolve: specify browser: true
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Sep 28, 2021
1 parent 88e28a3 commit 8ddc7ca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/rollup.config.js
Expand Up @@ -33,7 +33,7 @@ if (BUNDLE) {
'process.env.NODE_ENV': '"production"',
preventAssignment: true
}),
nodeResolve()
nodeResolve({ browser: true })
)
}

Expand Down
2 changes: 1 addition & 1 deletion js/tests/integration/rollup.bundle.js
Expand Up @@ -15,7 +15,7 @@ module.exports = {
'process.env.NODE_ENV': '"production"',
preventAssignment: true
}),
nodeResolve(),
nodeResolve({ browser: true }),
babel({
exclude: 'node_modules/**',
babelHelpers: 'bundled'
Expand Down
2 changes: 1 addition & 1 deletion js/tests/karma.conf.js
Expand Up @@ -93,7 +93,7 @@ const conf = {
// Inline the required helpers in each file
babelHelpers: 'inline'
}),
nodeResolve()
nodeResolve({ browser: true })
],
output: {
format: 'iife',
Expand Down

0 comments on commit 8ddc7ca

Please sign in to comment.