Skip to content

Commit

Permalink
Specify targetPlatform 'browser' in worker rollup config
Browse files Browse the repository at this point in the history
  • Loading branch information
isaac-mason committed Apr 2, 2022
1 parent 17437a3 commit c9d6973
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default [
output: { dir: 'dist', format: 'esm' },
plugins: [
resolve({ extensions }),
worker({ platform: 'base64', sourcemap: false }),
worker({ platform: 'base64', sourcemap: false, targetPlatform: 'browser' }),
babel(getBabelOptions({ useESModules: true }, '>1%, not dead, not ie 11, not op_mini all')),
commonjs(),
],
Expand All @@ -37,7 +37,7 @@ export default [
output: { dir: 'dist/debug', format: 'esm' },
plugins: [
resolve({ extensions }),
worker({ platform: 'base64', sourcemap: true }),
worker({ platform: 'base64', sourcemap: true, targetPlatform: 'browser' }),
babel(getBabelOptions({ useESModules: true }, '>1%, not dead, not ie 11, not op_mini all')),
commonjs(),
],
Expand Down

0 comments on commit c9d6973

Please sign in to comment.