Skip to content

Commit 070fe40

Browse files
committed
fix: #163 scriptLoader with antlr4ng
1 parent 81c8d59 commit 070fe40

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/ko/src/webpack/loaders/script.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@ class Script {
2323
},
2424
},
2525
{
26-
test: /\.(t|j)sx?$/,
26+
test: /\.m?(t|j)sx?$/,
2727
include: (input: string) => {
2828
// internal modules dt-common compatible
2929
if (input.includes('node_modules/dt-common/src/')) {
3030
return true;
3131
} else if (input.includes('antlr4-c3')) {
3232
return true;
33+
} else if (input.includes('antlr4ng')) {
34+
return true;
3335
} else if (input.includes('node_modules')) {
3436
return false;
3537
} else {

0 commit comments

Comments
 (0)