Skip to content

Commit 95d7510

Browse files
authored
Merge pull request #164 from DTStack/fix_163
Fix 163
2 parents 81c8d59 + d06596a commit 95d7510

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

packages/ko/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# ko
22

3+
## 6.5.11
4+
5+
### Patch Changes
6+
7+
- 22089fe9: scriptLoader with antlr4ng
8+
39
## 6.5.10
410

511
### Patch Changes

packages/ko/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ko",
3-
"version": "6.5.10",
3+
"version": "6.5.11",
44
"description": "build & lint library",
55
"keywords": [
66
"ko",

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)