From 4ace777b6620c2f3a681e67eac70c5ef99ba5d00 Mon Sep 17 00:00:00 2001 From: Edoardo Gallo Date: Mon, 26 Apr 2021 08:59:43 +0200 Subject: [PATCH] update tsdx base config --- tsdx.base.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tsdx.base.js b/tsdx.base.js index 055339868..bdadae211 100644 --- a/tsdx.base.js +++ b/tsdx.base.js @@ -18,6 +18,10 @@ exports.createRollupConfig = ( } else if (plugin.name === 'commonjs') { return commonjs({ include: /\/node_modules\//, + + // https://github.com/rollup/plugins/issues/304#issuecomment-619858916 + // exclude: ['node_modules/symbol-observable/es/*.js'], + ...swPlugins[plugin.name], }) } else if (plugin.name in swPlugins) { @@ -35,5 +39,9 @@ exports.createRollupConfig = ( return external(id) } + if (config.output.format === 'umd') { + delete config.external + } + return config }