Skip to content

Commit

Permalink
Merge pull request #164 from DTStack/fix_163
Browse files Browse the repository at this point in the history
Fix 163
  • Loading branch information
JackWang032 committed Apr 17, 2024
2 parents 81c8d59 + d06596a commit 95d7510
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions packages/ko/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# ko

## 6.5.11

### Patch Changes

- 22089fe9: scriptLoader with antlr4ng

## 6.5.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/ko/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ko",
"version": "6.5.10",
"version": "6.5.11",
"description": "build & lint library",
"keywords": [
"ko",
Expand Down
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 95d7510

Please sign in to comment.