Skip to content

Commit a03efcb

Browse files
committed
Update dependencies + update webpack config for example
1 parent 6c810da commit a03efcb

File tree

3 files changed

+485
-498
lines changed

3 files changed

+485
-498
lines changed

example/package-lock.json

Lines changed: 34 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/webpack.config.js

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
// eslint-disable-next-line @typescript-eslint/no-var-requires
1+
/* eslint-disable-next-line @typescript-eslint/no-var-requires */
22
const path = require('path');
33

44
module.exports = {
55
mode: 'development',
66
entry: {
7-
bundle: './app',
87
vendor: ['react', 'react-dom'],
8+
bundle: {
9+
import: './app',
10+
dependOn: 'vendor',
11+
},
912
},
1013
output: {
1114
filename: '[name].js',
@@ -25,20 +28,4 @@ module.exports = {
2528
extensions: ['.js', '.ts', '.tsx'],
2629
},
2730
devtool: 'eval-cheap-module-source-map',
28-
optimization: {
29-
splitChunks: {
30-
cacheGroups: {
31-
vendor: {
32-
chunks: 'initial',
33-
name: 'vendor',
34-
test: 'vendor',
35-
enforce: true,
36-
},
37-
},
38-
},
39-
runtimeChunk: {
40-
name: 'manifest',
41-
},
42-
emitOnErrors: false,
43-
},
4431
};

0 commit comments

Comments
 (0)