From 2e3e478335f34eae54eae3fe2c0a29734ce2718d Mon Sep 17 00:00:00 2001 From: remote-star Date: Tue, 6 Nov 2018 16:34:33 +0800 Subject: [PATCH] Fix the incompatibility when using TypeScript. --- generator/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/index.js b/generator/index.js index f7af692..5d6a936 100644 --- a/generator/index.js +++ b/generator/index.js @@ -7,7 +7,7 @@ module.exports = (api, opts, rootOptions) => { } }) - api.injectImports(utils.getMain(), `import './plugins/element.js'`) + api.injectImports(utils.getMain(), `import './plugins/element'`) api.render({ './src/plugins/element.js': './templates/src/plugins/element.js',