Skip to content

Commit febbefa

Browse files
refactor: changed package exports and removed chunk optimizations
1 parent 757eb82 commit febbefa

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@
1010
"url": "https://github.com/scratchfoundation/scratch-gui.git"
1111
},
1212
"main": "./dist/scratch-gui.js",
13-
"exports": {
14-
"webpack": "./src/index.js",
15-
"browser": "./dist/scratch-gui.js",
16-
"default": "./src/index.js"
17-
},
1813
"scripts": {
1914
"build": "npm run clean && webpack",
2015
"clean": "rimraf ./build ./dist",

webpack.config.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const baseConfig = new ScratchWebpackConfigBuilder(
1313
{
1414
rootPath: path.resolve(__dirname),
1515
enableReact: true,
16-
shouldSplitChunks: true
16+
shouldSplitChunks: false
1717
})
1818
.setTarget('browserslist')
1919
.merge({
@@ -29,9 +29,6 @@ const baseConfig = new ScratchWebpackConfigBuilder(
2929
Buffer: require.resolve('buffer/'),
3030
stream: require.resolve('stream-browserify')
3131
}
32-
},
33-
optimization: {
34-
runtimeChunk: 'single'
3532
}
3633
})
3734
.addModuleRule({

0 commit comments

Comments
 (0)