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:
pengx17
2024-03-23 06:33:25 +00:00
parent 34703a3b7d
commit 3c6983ee49
9 changed files with 18 additions and 16 deletions
@@ -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),
@@ -0,0 +1,2 @@
import 'core-js/modules/esnext.symbol.async-dispose';
import 'core-js/modules/esnext.symbol.dispose';
@@ -1,3 +1,4 @@
import './polyfill';
import '../src/theme/global.css';
import './preview.css';
import { ThemeProvider, useTheme } from 'next-themes';