Add Back Comments (#10019)

* Add Back Comments

* remove property all together

* Replace all instances
This commit is contained in:
Joe Haddad 2020-01-09 16:33:22 -05:00 committed by GitHub
parent af82f322e5
commit dd6406ace2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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');`
)
}