Skip to content

Commit e1b2943

Browse files
committed
chore: tweak config
1 parent 66d2ab8 commit e1b2943

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

Diff for: .gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
node_modules
44
dist
55
link.sh
6+
.cache
7+
TODOs.md

Diff for: example/webpack.config.js

+3-11
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ module.exports = (env = {}) => {
5656
cacheIdentifier: hash(
5757
fs.readFileSync(path.resolve(__dirname, '../package.json')) +
5858
JSON.stringify(env)
59-
)
59+
),
60+
cacheDirectory: path.resolve(__dirname, '../.cache')
6061
}
6162
},
6263
...(babel
@@ -88,16 +89,7 @@ module.exports = (env = {}) => {
8889
})
8990
],
9091
optimization: {
91-
minimize,
92-
splitChunks: {
93-
cacheGroups: {
94-
commons: {
95-
test: /esm-bundler/,
96-
name: 'vendors',
97-
chunks: 'all'
98-
}
99-
}
100-
}
92+
minimize
10193
},
10294
devServer: {
10395
stats: 'minimal',

Diff for: src/pitcher.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ pitcher.pitch = function() {
8282
}
8383

8484
// Rewrite request. Technically this should only be done when we have deduped
85-
// loaders. But somehow this is required for template source map to work...
85+
// loaders. But somehow this is required for block source maps to work.
8686
return genProxyModule(loaders, context)
8787
}
8888

0 commit comments

Comments
 (0)