From 140cef25e0a77d10548a6566a29a348dab8cea77 Mon Sep 17 00:00:00 2001 From: mauro Date: Sun, 10 Jun 2018 10:04:17 -0400 Subject: [PATCH] add @babel/polyfill --- generator/index.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/generator/index.js b/generator/index.js index 370f8414..7c310b28 100755 --- a/generator/index.js +++ b/generator/index.js @@ -17,6 +17,14 @@ module.exports = (api, opts, rootOpts) => { }) } + if (opts.usePolyfill) { + api.extendPackage({ + devDependencies: { + "@babel/polyfill": "^7.0.0-beta.49", + } + }) + } + // Render vuetify plugin file api.render({ './src/plugins/vuetify.js': './templates/default/src/plugins/vuetify.js'