mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-19 05:02:40 +08:00
This would be a good fundament for adding Snowpack/Vite builder support. Currently, Storybook UI can be built by Webpack or tsc, but esbuild transpiles .ts file-by-file and therefore has some caveats: https://esbuild.github.io/content-types/#typescript-caveats This change adds isolatedModules: true to tsconfig.json, and fixes a few places in the Storybook source code. The result has been briefly tested with esbuild - with these changes, it's possible to build Storybook UI using Vite.
30 lines
627 B
JSON
30 lines
627 B
JSON
{
|
|
"compileOnSave": false,
|
|
"compilerOptions": {
|
|
"baseUrl": ".",
|
|
"incremental": false,
|
|
"noImplicitAny": true,
|
|
"experimentalDecorators": true,
|
|
"emitDecoratorMetadata": true,
|
|
"jsx": "react",
|
|
"module": "commonjs",
|
|
"skipLibCheck": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"esModuleInterop": true,
|
|
"isolatedModules": true,
|
|
"target": "es5",
|
|
"types": ["jest"],
|
|
"lib": ["es2017", "dom"]
|
|
},
|
|
"exclude": [
|
|
"**/dist",
|
|
"node_modules",
|
|
"**/node_modules",
|
|
"**/*.spec.ts",
|
|
"**/__tests__",
|
|
"**/*.test.ts",
|
|
"**/FlowType*",
|
|
"**/setup-jest.ts"
|
|
]
|
|
}
|