mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
567da9adbf
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
11 lines
144 B
JavaScript
11 lines
144 B
JavaScript
const env = require('./env-config')
|
|
|
|
module.exports = {
|
|
'presets': [
|
|
'next/babel'
|
|
],
|
|
'plugins': [
|
|
['transform-define', env]
|
|
]
|
|
}
|