Skip to content

Commit

Permalink
fix: #163 scriptLoader with antlr4ng
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxy0551 committed Apr 17, 2024
1 parent 81c8d59 commit 070fe40
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/ko/src/webpack/loaders/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ class Script {
},
},
{
test: /\.(t|j)sx?$/,
test: /\.m?(t|j)sx?$/,
include: (input: string) => {
// internal modules dt-common compatible
if (input.includes('node_modules/dt-common/src/')) {
return true;
} else if (input.includes('antlr4-c3')) {
return true;
} else if (input.includes('antlr4ng')) {
return true;
} else if (input.includes('node_modules')) {
return false;
} else {
Expand Down

0 comments on commit 070fe40

Please sign in to comment.