storybook/tsconfig.json
Eirik Sletteberg f74a04a411 Make Storybook esbuild-compatible
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.
2021-03-29 22:18:41 +02:00

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"
]
}