babel: Drop CommonJS plugin

Now all `module.exports` are gone, so this can be dropped again. This
tightens the static (compile time) import/export checks and avoids
runtime errors due to typos, undeclared exports, etc. This also enforces
consistent import/export handling from now on.

Closes #10890
This commit is contained in:
Martin Pitt 2018-12-29 14:53:54 +01:00 committed by Lars Karlitski
parent dad606d58d
commit ed0c6ca720
1 changed files with 1 additions and 2 deletions

View File

@ -379,8 +379,7 @@ var babel_loader = {
}
}],
"@babel/preset-react"
],
plugins: ["@babel/plugin-transform-modules-commonjs"]
]
}
}