From ea0f022e5893302e5189f2e5f22cfc8d3314df6d Mon Sep 17 00:00:00 2001 From: Xc <124118265@qq.com> Date: Thu, 2 Feb 2023 23:22:53 +0800 Subject: [PATCH] fix: webpack conversion script parsing lost --- CHANGELOG.md | 3 +++ README.md | 8 +++----- src/core/transform.ts | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aa62cff..c76e3db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## Changelog +[0.4.7] +- Fix: webpack conversion script parsing lost + [0.4.6] - Fix: webpack parsing failed resulting in process termination[#12](https://github.com/chenxch/unplugin-vue-setup-extend-plus/issues/12) diff --git a/README.md b/README.md index fed1f0f..5aeb31c 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,9 @@ Make the vue script setup syntax support the name attribute ## CHANGELOG +[0.4.7] +- Fix: webpack conversion script parsing lost + [0.4.6] - Fix: webpack parsing failed resulting in process termination[#12](https://github.com/chenxch/unplugin-vue-setup-extend-plus/issues/12) @@ -18,11 +21,6 @@ Make the vue script setup syntax support the name attribute [0.4.1] - Feature: suppot vite@4 -[0.3.2] -- Fix: use more specific function types[#6](https://github.com/chenxch/unplugin-vue-setup-extend-plus/issues/6) -- Remove `fileName` mode (Because its performance is consistent with the performance of Vue itself, it is a repetitive thing.) - -`For details, refer to Options and extendIgnore` ## Feature diff --git a/src/core/transform.ts b/src/core/transform.ts index bdb97b5..f029935 100644 --- a/src/core/transform.ts +++ b/src/core/transform.ts @@ -16,13 +16,13 @@ export function supportScriptName(code: string, id: string, options: Options) { if (name || inheritAttrs) { str().appendLeft( 0, - `\n`, +\n`, ) }