From 63f5c6e9f18388b214c17d432842b581c26b33ac Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 5 Dec 2018 17:46:28 -0500 Subject: [PATCH] build: add esm browser prod build --- scripts/config.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/config.js b/scripts/config.js index 39395828..677ee2eb 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -84,7 +84,7 @@ const builds = { banner }, // Runtime+compiler ES modules build (for direct import in browser) - 'web-full-esm-browser': { + 'web-full-esm-browser-dev': { entry: resolve('web/entry-runtime-with-compiler.js'), dest: resolve('dist/vue.esm.browser.js'), format: 'es', @@ -93,6 +93,16 @@ const builds = { alias: { he: './entity-decoder' }, banner }, + // Runtime+compiler ES modules build (for direct import in browser) + 'web-full-esm-browser-prod': { + entry: resolve('web/entry-runtime-with-compiler.js'), + dest: resolve('dist/vue.esm.browser.min.js'), + format: 'es', + transpile: false, + env: 'production', + alias: { he: './entity-decoder' }, + banner + }, // runtime-only build (Browser) 'web-runtime-dev': { entry: resolve('web/entry-runtime.js'),