You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -37,9 +36,6 @@ export function rollupPluginPrebundleModules(env: Record<string, string>): Plugi
37
36
lodash: getNodeModuleDir('lodash-es'),// more optimal, but also solves esbuild incorrectly compiling lodash/_nodeUtil
38
37
path: require.resolve('path-browserify'),
39
38
},
40
-
define: {
41
-
...stringifyProcessEnvs(env),
42
-
},
43
39
plugins: [esbuildCommonjsPlugin()],
44
40
});
45
41
},
@@ -64,7 +60,7 @@ function getModules() {
64
60
65
61
// this is different to https://github.com/storybookjs/storybook/blob/v7.0.0/code/lib/builder-vite/src/optimizeDeps.ts#L7
66
62
// builder-vite bundles different dependencies for performance reasons
67
-
// we aim only at browserifying NodeJS dependencies (CommonJS/process.env/...)
63
+
// we aim only at browserifying dependencies which are CommonJS, or sometimes ESM with issues
68
64
exportconstCANDIDATES=[
69
65
// @testing-library has ESM, but imports/exports are not working correctly between packages
70
66
// specifically "@testing-library/user-event" has "dist/esm/utils/misc/getWindow.js" (see https://cdn.jsdelivr.net/npm/@testing-library/[email protected]/dist/esm/utils/misc/getWindow.js)
0 commit comments