Skip to content

Commit

Permalink
add named exports
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsn committed Jul 25, 2018
1 parent c8ee27f commit 83c9432
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/VueProgram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ class VueProgram {
const src = script.attrs.src.replace(/\.tsx?$/i, '');
return {
scriptKind,
content: `// tslint:disable\nexport { default } from '${src}';`
content: '// tslint:disable\n'
+ `export { default } from '${src}';\n`
+ `export * from '${src}';\n`
};
}

Expand Down

0 comments on commit 83c9432

Please sign in to comment.