diff --git a/rollup.config.js b/rollup.config.js index 9cceb99..a967766 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -13,5 +13,12 @@ export default { file: 'dist/index.mjs', sourcemap: true, }, - plugins: [commonjs(), nodeResolve({ browser: true }), terser()], + plugins: [ + commonjs(), + nodeResolve({ + exportConditions: ['browser', 'worker'], + browser: true, + }), + terser(), + ], }