Skip to content

Commit 83c9432

Browse files
committed
add named exports
1 parent c8ee27f commit 83c9432

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/VueProgram.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,9 @@ class VueProgram {
228228
const src = script.attrs.src.replace(/\.tsx?$/i, '');
229229
return {
230230
scriptKind,
231-
content: `// tslint:disable\nexport { default } from '${src}';`
231+
content: '// tslint:disable\n'
232+
+ `export { default } from '${src}';\n`
233+
+ `export * from '${src}';\n`
232234
};
233235
}
234236

0 commit comments

Comments
 (0)