Support esnext in storybook
This commit is contained in:
parent
468ca256e6
commit
19279cfebd
16 changed files with 1088 additions and 434 deletions
|
@ -12,7 +12,7 @@ const isProd = process.argv.some(argv => argv === '-prod' || argv === '--prod');
|
|||
|
||||
const nodeDefaults = {
|
||||
platform: 'node',
|
||||
target: 'es2020',
|
||||
target: 'esnext',
|
||||
sourcemap: isProd ? false : 'inline',
|
||||
// Otherwise React components get renamed
|
||||
// See: https://github.com/evanw/esbuild/issues/1147
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue