diff --git a/test/e2e/plugin.ts b/test/e2e/plugin.ts index f3b82eb5..5ddebbf3 100644 --- a/test/e2e/plugin.ts +++ b/test/e2e/plugin.ts @@ -19,10 +19,6 @@ export default function (options: { config(config) { return { build: { - // Currently enabling Rollup treeshake because JS built-ins is not supported yet - // rollupOptions: { - // treeshake: false - // }, outDir: './dist', minify: false, emptyOutDir: false, @@ -33,6 +29,10 @@ export default function (options: { fileName: disabled ? 'bundled' : 'shaken', ...config?.build?.lib, }, + rollupOptions: { + ...config?.build?.rollupOptions, + treeshake: false, + }, modulePreload: { polyfill: false, ...(typeof config?.build?.modulePreload === 'object' ? config.build.modulePreload : {}),