Commit 567da9ad authored by Telegin Evgeniy's avatar Telegin Evgeniy Committed by Tim Neutkens

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
parent c74ad93e
{
"presets": [
"next/babel"
],
"plugins": [
["transform-define", "./env-config.js"]
]
}
const env = require('./env-config')
module.exports = {
'presets': [
'next/babel'
],
'plugins': [
['transform-define', env]
]
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment