mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-11 07:00:47 +02:00
Configure babel to not compile ES6 imports/exports
Webpack can automatically handle the transpilation of ES6 imports to ES5. It can also better optimize transpilation as raw ES6 imports can be tree-shaken better.
This commit is contained in:
@@ -45,7 +45,9 @@ module.exports = {
|
||||
use: [{
|
||||
loader: 'babel-loader',
|
||||
options: {
|
||||
presets: ['env'],
|
||||
presets: [
|
||||
['env', { modules: false }]
|
||||
],
|
||||
// Configure babel-loader to cache compiled output so that subsequent
|
||||
// compile runs are much faster
|
||||
cacheDirectory: true
|
||||
|
||||
Reference in New Issue
Block a user