Skip to content

Commit

Permalink
fix: update .babelrc and vite cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
ifeelBALANCED committed Jun 1, 2021
1 parent e3505a8 commit 9bb0f08
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 30 deletions.
30 changes: 1 addition & 29 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,31 +1,3 @@
{
"plugins": [
[
"@babel/plugin-proposal-class-properties",
{
"loose": true
}
],
"effector/babel-plugin"
],
"presets": [
"@babel/preset-react",
"@babel/preset-flow",
[
"@babel/preset-env",
{
"modules": false,
"shippedProposals": true,
"loose": true,
"useBuiltIns": false,
"targets": {
"browsers": [
"last 2 Chrome versions",
"last 2 Firefox versions",
"last 2 Safari versions"
]
}
}
]
]
"plugins": ["effector/babel-plugin"]
}
10 changes: 9 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
import {defineConfig} from 'vite'
import reactRefresh from '@vitejs/plugin-react-refresh'
import {babel} from "@rollup/plugin-babel";

// https://vitejs.dev/config/
export default defineConfig({
plugins: [reactRefresh()]
plugins: [
reactRefresh(),
babel({
include: ['./src/**'],
extensions: ['.ts', '.tsx'],
babelHelpers: 'bundled',
}),
],
})

0 comments on commit 9bb0f08

Please sign in to comment.