1
0
Fork 0
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:
Telegin Evgeniy 2018-06-10 17:08:52 +06:00 committed by Tim Neutkens
parent c74ad93e14
commit 567da9adbf
2 changed files with 10 additions and 8 deletions

View file

@ -1,8 +0,0 @@
{
"presets": [
"next/babel"
],
"plugins": [
["transform-define", "./env-config.js"]
]
}

View file

@ -0,0 +1,10 @@
const env = require('./env-config')
module.exports = {
'presets': [
'next/babel'
],
'plugins': [
['transform-define', env]
]
}