Skip to content

Commit

Permalink
Merge pull request #14 from Andarist/export-conditions
Browse files Browse the repository at this point in the history
Configure `exportConditions` in the Rollup config
  • Loading branch information
threepointone committed Dec 15, 2021
2 parents e6ec272 + f10d330 commit 6764530
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion rollup.config.js
Expand Up @@ -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(),
],
}

0 comments on commit 6764530

Please sign in to comment.