diff --git a/packages/taro-platform-h5/rollup.config.js b/packages/taro-platform-h5/rollup.config.js index 32e5120f1681..63e92d7d950f 100644 --- a/packages/taro-platform-h5/rollup.config.js +++ b/packages/taro-platform-h5/rollup.config.js @@ -65,13 +65,7 @@ const variesConfig = [{ format: 'cjs', inlineDynamicImports: true }, - plugins: getPlugins([ - externals({ - deps: true, - devDeps: false, - exclude: ['@tarojs/components', '@tarojs/taro-h5'] - }) - ], [exportNameOnly()]) + plugins: getPlugins([exportNameOnly()]) }] if (process.env.NODE_ENV === 'production') {