We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7903030 commit bd51302Copy full SHA for bd51302
rollup.config.js
@@ -34,7 +34,7 @@ const tsConfig = {
34
};
35
const input = 'src/bson.ts';
36
37
-const plugins = ({ browser = false }) => {
+const plugins = (options = { browser: false }) => {
38
return [
39
typescript(tsConfig),
40
nodeResolve({ preferBuiltins: false }),
@@ -43,7 +43,7 @@ const plugins = ({ browser = false }) => {
43
replace({
44
preventAssignment: true,
45
values: {
46
- 'rollupProcess.browser': browser
+ 'rollupProcess.browser': options.browser
47
}
48
}),
49
commonjs({ extensions: ['.js', '.ts'] }),
@@ -69,7 +69,7 @@ module.exports = [
69
exports: 'named',
70
sourcemap: true
71
},
72
- plugins: plugins({ browser: false }),
+ plugins: plugins(),
73
external
74
75
{
0 commit comments