From 83c94326e6445f41eecaa3410c6f4c096af10b8d Mon Sep 17 00:00:00 2001 From: ktsn Date: Wed, 25 Jul 2018 13:26:26 +0900 Subject: [PATCH] add named exports --- src/VueProgram.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/VueProgram.ts b/src/VueProgram.ts index c97d0637..80e60567 100644 --- a/src/VueProgram.ts +++ b/src/VueProgram.ts @@ -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` }; }