From 070fe40e81e7598bfb1c4eb835302d043b77c3fc Mon Sep 17 00:00:00 2001 From: liuyi Date: Wed, 17 Apr 2024 19:26:55 +0800 Subject: [PATCH 1/3] fix: #163 scriptLoader with antlr4ng --- packages/ko/src/webpack/loaders/script.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 { From 22089fe9df247e257123a63a39c60e5b4c79fa73 Mon Sep 17 00:00:00 2001 From: liuyi Date: Wed, 17 Apr 2024 19:28:40 +0800 Subject: [PATCH 2/3] docs(changeset): scriptLoader with antlr4ng --- .changeset/modern-boats-hammer.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/modern-boats-hammer.md diff --git a/.changeset/modern-boats-hammer.md b/.changeset/modern-boats-hammer.md new file mode 100644 index 00000000..794df81c --- /dev/null +++ b/.changeset/modern-boats-hammer.md @@ -0,0 +1,5 @@ +--- +'ko': patch +--- + +scriptLoader with antlr4ng From d06596ab477acdda8445f741b58fcd16a4b81fca Mon Sep 17 00:00:00 2001 From: liuyi Date: Wed, 17 Apr 2024 19:29:22 +0800 Subject: [PATCH 3/3] RELEASING: Releasing 1 package(s) Releases: ko@6.5.11 [skip ci] --- .changeset/modern-boats-hammer.md | 5 ----- packages/ko/CHANGELOG.md | 6 ++++++ packages/ko/package.json | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 .changeset/modern-boats-hammer.md diff --git a/.changeset/modern-boats-hammer.md b/.changeset/modern-boats-hammer.md deleted file mode 100644 index 794df81c..00000000 --- a/.changeset/modern-boats-hammer.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'ko': patch ---- - -scriptLoader with antlr4ng 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",