mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-21 05:02:39 +08:00
fix the build system.
Emotion changed to use exports map, and esbuild wasn't pivking the right entry anymore, resulting in react not being detected, and thus not bundled, and thus missing at runtime! I changed the tsup/esbuild config to prefer the ESM version, and this seems to have fixed the issue. Many thanks to @Anderist for the assist!
This commit is contained in:
parent
a78c62a7e8
commit
6ebde54236
@ -80,6 +80,7 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => {
|
||||
: false,
|
||||
esbuildOptions: (c) => {
|
||||
/* eslint-disable no-param-reassign */
|
||||
c.conditions = ['module'];
|
||||
c.define = optimized
|
||||
? {
|
||||
'process.env.NODE_ENV': "'production'",
|
||||
|
Loading…
x
Reference in New Issue
Block a user