Skip to content

Commit 71a70fe

Browse files
committed
fix: bundle resources other than js(x)/json in node_modules (#4913)
1 parent 3516580 commit 71a70fe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/webpack/src/config/server.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ export default class WebpackServerConfig extends WebpackBaseConfig {
1616

1717
normalizeWhitelist() {
1818
const whitelist = [
19-
/\.css$/,
20-
/\?vue&type=style/
19+
/\.(?!js(x|on)?$)/i
2120
]
2221
for (const pattern of this.options.build.transpile) {
2322
if (pattern instanceof RegExp) {

0 commit comments

Comments
 (0)