mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Upgrade gh-pages example to next 6.0.3 (#4575)
Hello! I have got an error while building [gh-pages example](https://github.com/zeit/next.js/tree/canary/examples/gh-pages) with next 6.0.3. I have found solution to use CommonJS modules in `.babelrc` This resolves #4227
This commit is contained in:
parent
c74ad93e14
commit
567da9adbf
|
@ -1,8 +0,0 @@
|
||||||
{
|
|
||||||
"presets": [
|
|
||||||
"next/babel"
|
|
||||||
],
|
|
||||||
"plugins": [
|
|
||||||
["transform-define", "./env-config.js"]
|
|
||||||
]
|
|
||||||
}
|
|
10
examples/gh-pages/.babelrc.js
Normal file
10
examples/gh-pages/.babelrc.js
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
const env = require('./env-config')
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
'presets': [
|
||||||
|
'next/babel'
|
||||||
|
],
|
||||||
|
'plugins': [
|
||||||
|
['transform-define', env]
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in a new issue