mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
parent
d674dcc426
commit
cdfcde16a6
|
@ -1,8 +0,0 @@
|
|||
{
|
||||
"presets": [
|
||||
"next/babel"
|
||||
],
|
||||
"plugins": [
|
||||
["transform-define", "./env-config.js"]
|
||||
]
|
||||
}
|
6
examples/with-universal-configuration/.babelrc.js
Normal file
6
examples/with-universal-configuration/.babelrc.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
const env = require('./env-config.js')
|
||||
|
||||
module.exports = {
|
||||
presets: ['next/babel'],
|
||||
plugins: [['transform-define', env]]
|
||||
}
|
|
@ -12,7 +12,7 @@
|
|||
"react-dom": "^16.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-plugin-transform-define": "^1.2.0"
|
||||
"babel-plugin-transform-define": "^1.3.0"
|
||||
},
|
||||
"license": "ISC"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue