From 2b5422395bf18ddb8bb751e71e87b23ad48212f1 Mon Sep 17 00:00:00 2001 From: Georges KABBOUCHI Date: Sat, 19 Sep 2020 17:57:27 +0300 Subject: [PATCH] wip --- rollup.config.js | 5 +++-- tsconfig.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/rollup.config.js b/rollup.config.js index 7b4e880..cfe8b89 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -66,6 +66,7 @@ function createConfig(format, output, plugins = []) { output.banner = banner output.externalLiveBindings = false output.globals = { vue: 'Vue' } + output.exports = 'named' const isProductionBuild = /\.prod\.js$/.test(output.file) const isGlobalBuild = format === 'global' @@ -139,9 +140,9 @@ function createReplacePlugin( __VERSION__: `"${pkg.version}"`, __DEV__: isBundlerESMBuild ? // preserve to be handled by bundlers - `(process.env.NODE_ENV !== 'production')` + `(process.env.NODE_ENV !== 'production')` : // hard coded dev/prod builds - !isProduction, + !isProduction, // this is only used during tests __TEST__: isBundlerESMBuild ? `(process.env.NODE_ENV === 'test')` : false, // If the build is expected to run directly in the browser (global / esm builds) diff --git a/tsconfig.json b/tsconfig.json index c6522f6..110a7af 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,7 +7,7 @@ "sourceMap": false, "noEmit": true, - "target": "esnext", + "target": "es2019", "module": "esnext", "moduleResolution": "node", "allowJs": false,