Skip to content

Commit ea0f022

Browse files
committed
fix: webpack conversion script parsing lost
1 parent 590308e commit ea0f022

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## Changelog
22

3+
[0.4.7]
4+
- Fix: webpack conversion script parsing lost
5+
36
[0.4.6]
47
- Fix: webpack parsing failed resulting in process termination[#12](https://github.com/chenxch/unplugin-vue-setup-extend-plus/issues/12)
58

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ Make the vue script setup syntax support the name attribute
66

77
## CHANGELOG
88

9+
[0.4.7]
10+
- Fix: webpack conversion script parsing lost
11+
912
[0.4.6]
1013
- Fix: webpack parsing failed resulting in process termination[#12](https://github.com/chenxch/unplugin-vue-setup-extend-plus/issues/12)
1114

@@ -18,11 +21,6 @@ Make the vue script setup syntax support the name attribute
1821
[0.4.1]
1922
- Feature: suppot vite@4
2023

21-
[0.3.2]
22-
- Fix: use more specific function types[#6](https://github.com/chenxch/unplugin-vue-setup-extend-plus/issues/6)
23-
- Remove `fileName` mode (Because its performance is consistent with the performance of Vue itself, it is a repetitive thing.)
24-
25-
`For details, refer to Options and extendIgnore`
2624

2725
## Feature
2826

src/core/transform.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ export function supportScriptName(code: string, id: string, options: Options) {
1616
if (name || inheritAttrs) {
1717
str().appendLeft(
1818
0,
19-
`<script ${lang ? `lang="${lang}"` : ''}>
19+
`<script${lang ? ` lang="${lang}"` : ''}>
2020
import { defineComponent } from 'vue'
2121
export default defineComponent({
2222
${name ? `name: "${name}",` : ''}
2323
${inheritAttrs ? `inheritAttrs: ${inheritAttrs !== 'false'},` : ''}
2424
})
25-
</script>\n`,
25+
</script$>\n`,
2626
)
2727
}
2828

0 commit comments

Comments
 (0)