storybook/docs/snippets/common/storybook-babel-configuration-example.ts.mdx
2020-10-07 12:23:34 +08: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')
],
};
}
```