mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
0461413348
* Remove obsolete check in dev-server * Don’t require package.json at runtime Inline the Next.js version at publish time, so that there’s no runtime dependency for this
19 lines
459 B
JavaScript
19 lines
459 B
JavaScript
module.exports = {
|
|
'presets': [
|
|
'@babel/preset-env',
|
|
'@babel/preset-react',
|
|
'@babel/preset-flow'
|
|
],
|
|
'plugins': [
|
|
'@babel/plugin-syntax-dynamic-import',
|
|
'@babel/plugin-proposal-object-rest-spread',
|
|
'@babel/plugin-proposal-class-properties',
|
|
['@babel/plugin-transform-runtime', {
|
|
'corejs': 2
|
|
}],
|
|
['babel-plugin-transform-define', {
|
|
'process.env.NEXT_VERSION': require('./package.json').version
|
|
}]
|
|
]
|
|
}
|