Add Back Comments (#10019)
* Add Back Comments * remove property all together * Replace all instances
This commit is contained in:
parent
af82f322e5
commit
dd6406ace2
1 changed files with 1 additions and 2 deletions
|
@ -10,7 +10,6 @@ module.exports = function(task) {
|
|||
const options = {
|
||||
...babelOpts,
|
||||
compact: true,
|
||||
comments: false,
|
||||
babelrc: false,
|
||||
configFile: false,
|
||||
filename: file.base,
|
||||
|
@ -31,7 +30,7 @@ module.exports = function(task) {
|
|||
// Workaround for noop.js loading
|
||||
if (file.base === 'next-dev.js') {
|
||||
output.code = output.code.replace(
|
||||
'__REPLACE_NOOP_IMPORT__',
|
||||
/__REPLACE_NOOP_IMPORT__/g,
|
||||
`import('./dev/noop');`
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue