storybook/docs/snippets/common/storybook-babel-configuration-example.ts.mdx
2020-08-11 01:11:41 +01:00

13 lines
257 B
Plaintext

```ts
// mithril/src/server/framework-preset-mithril.ts
export function babelDefault(config: TransformOptions) {
return {
...config,
plugins: [
...config.plugins,
require.resolve('@babel/plugin-transform-react-jsx')
],
};
}
```