Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit 338aac0

Browse files
committed
Use regex to check path
1 parent affa56c commit 338aac0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/create_compilers/RollupCompiler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export default class RollupCompiler {
105105

106106
// TODO this is hacky. refactor out into an external rollup plugin
107107
(mod.plugins || (mod.plugins = [])).push(css_chunks({ injectImports: true }));
108-
if (!JSON.stringify(mod.input).includes('client.')) {
108+
if (!/[\\/]client\./.test(JSON.stringify(mod.input))) {
109109
return mod;
110110
}
111111
mod.plugins.push({

0 commit comments

Comments
 (0)