Skip to content

Commit ba90bc1

Browse files
isaac-masonbjornstar
authored andcommitted
Specify targetPlatform: 'browser' in @pmndrs/cannon-worker-api rollup config
1 parent 7a668ff commit ba90bc1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cannon-worker-api/rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default [
2323
plugins: [
2424
pluginCommonjs({ esmExternals: ['events'] }),
2525
pluginNodeResolve({ extensions, preferBuiltins: false }),
26-
pluginWebWorker({ platform: 'base64', sourcemap: false }),
26+
pluginWebWorker({ platform: 'base64', sourcemap: false, targetPlatform: 'browser' }),
2727
babel(getBabelOptions({ useESModules: true }, '>1%, not dead, not ie 11, not op_mini all')),
2828
],
2929
},
@@ -34,7 +34,7 @@ export default [
3434
plugins: [
3535
pluginCommonjs({ esmExternals: ['events'] }),
3636
pluginNodeResolve({ extensions, preferBuiltins: false }),
37-
pluginWebWorker({ platform: 'base64', sourcemap: true }),
37+
pluginWebWorker({ platform: 'base64', sourcemap: true, targetPlatform: 'browser' }),
3838
babel(getBabelOptions({ useESModules: true }, '>1%, not dead, not ie 11, not op_mini all')),
3939
],
4040
},

0 commit comments

Comments
 (0)