1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-09 07:25:19 +02:00

Add .babelrc to fix build issues

This commit is contained in:
Simon Bukin 2024-01-20 16:20:41 -08:00
parent 4798b5a88f
commit 7f4e976c52
4 changed files with 24 additions and 17 deletions

14
apps/client/.babelrc.json Normal file
View file

@ -0,0 +1,14 @@
{
"presets": [
"@babel/preset-typescript",
"@babel/preset-env",
[
"@nrwl/react/babel",
{
"runtime": "automatic",
"useBuiltIns": "usage"
}
]
],
"plugins": []
}

View file

@ -2,7 +2,6 @@ const rootMain = require('../../../.storybook/main')
module.exports = { module.exports = {
...rootMain, ...rootMain,
core: { ...rootMain.core, builder: 'webpack5' }, core: { ...rootMain.core, builder: 'webpack5' },
stories: ['../**/*.stories.@(js|jsx|ts|tsx)'], stories: ['../**/*.stories.@(js|jsx|ts|tsx)'],
addons: [...rootMain.addons, '@nrwl/react/plugins/storybook'], addons: [...rootMain.addons, '@nrwl/react/plugins/storybook'],

View file

@ -1,18 +1,5 @@
{ {
"extends": "../tsconfig.json", "extends": "../tsconfig.json",
"compilerOptions": { "compilerOptions": {},
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"outDir": "",
"jsx": "react-jsx",
"allowJs": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noEmit": false
},
"include": ["**/*.ts", "**/*.tsx", "**/**/*.ts", "**/**/*.tsx"] "include": ["**/*.ts", "**/*.tsx", "**/**/*.ts", "**/**/*.tsx"]
} }

View file

@ -1,11 +1,18 @@
import type { Story, Meta } from '@storybook/react' import type { Story, Meta } from '@storybook/react'
import Maintenance from './Maintenance' import Maintenance from './Maintenance.tsx'
import React from 'react'
export default { export default {
title: 'components/Maintenance.tsx', title: 'components/Maintenance.tsx',
component: Maintenance, component: Maintenance,
} as Meta } as Meta
const Template: Story = (args) => <Maintenance /> const Template: Story = () => {
return (
<>
<Maintenance />
</>
)
}
export const Base = Template.bind({}) export const Base = Template.bind({})