mirror of
https://github.com/typicode/json-server.git
synced 2025-07-29 21:23:41 +08:00
Upgrade to Babel 7
This commit is contained in:
@ -1,3 +0,0 @@
|
||||
{
|
||||
"presets": [ "env", "preact"]
|
||||
}
|
14
src/front/.babelrc.js
Normal file
14
src/front/.babelrc.js
Normal file
@ -0,0 +1,14 @@
|
||||
const transformReactJsx = require("@babel/plugin-transform-react-jsx");
|
||||
|
||||
|
||||
module.exports = {
|
||||
"presets": [
|
||||
"@babel/preset-env",
|
||||
// "preact" disabling temporary
|
||||
],
|
||||
// remove plugins and deps when preact preset supports Babel 7
|
||||
"plugins": [
|
||||
[ transformReactJsx, { "pragma": "h" }],
|
||||
require("@babel/plugin-syntax-jsx"),
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user