fix(core): storybook build issue (#6274)
1. es2022 is required and should be set separately in storybook. 2. @blocksuite/icons versions are not consistent across packages.
This commit is contained in:
@@ -25,6 +25,9 @@ export default {
|
||||
async viteFinal(config, _options) {
|
||||
return mergeConfig(config, {
|
||||
plugins: [vanillaExtractPlugin()],
|
||||
esbuild: {
|
||||
target: 'ES2022',
|
||||
},
|
||||
define: {
|
||||
'process.env': {},
|
||||
'process.env.COVERAGE': JSON.stringify(!!process.env.COVERAGE),
|
||||
|
||||
Reference in New Issue
Block a user