diff --git a/packages/ko/CHANGELOG.md b/packages/ko/CHANGELOG.md index d9decc4e..3ba90a2e 100644 --- a/packages/ko/CHANGELOG.md +++ b/packages/ko/CHANGELOG.md @@ -1,5 +1,11 @@ # ko +## 6.5.11 + +### Patch Changes + +- 22089fe9: scriptLoader with antlr4ng + ## 6.5.10 ### Patch Changes diff --git a/packages/ko/package.json b/packages/ko/package.json index 71dd0149..54c57fa7 100644 --- a/packages/ko/package.json +++ b/packages/ko/package.json @@ -1,6 +1,6 @@ { "name": "ko", - "version": "6.5.10", + "version": "6.5.11", "description": "build & lint library", "keywords": [ "ko", diff --git a/packages/ko/src/webpack/loaders/script.ts b/packages/ko/src/webpack/loaders/script.ts index 5385c6f5..5c7af3e6 100644 --- a/packages/ko/src/webpack/loaders/script.ts +++ b/packages/ko/src/webpack/loaders/script.ts @@ -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 {