Skip to content

Commit

Permalink
Upgrade gh-pages example to next 6.0.3 (#4575)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
teleginzhenya authored and timneutkens committed Jun 10, 2018
1 parent c74ad93 commit 567da9a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
8 changes: 0 additions & 8 deletions examples/gh-pages/.babelrc

This file was deleted.

10 changes: 10 additions & 0 deletions examples/gh-pages/.babelrc.js
@@ -0,0 +1,10 @@
const env = require('./env-config')

module.exports = {
'presets': [
'next/babel'
],
'plugins': [
['transform-define', env]
]
}

0 comments on commit 567da9a

Please sign in to comment.