Skip to content
This repository was archived by the owner on May 6, 2025. It is now read-only.

Commit b19b6a9

Browse files
committed
bumped babel to v7.x
1 parent d772d39 commit b19b6a9

File tree

4 files changed

+2176
-1570
lines changed

4 files changed

+2176
-1570
lines changed

assets/src/js/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import 'babel-polyfill';
1+
import '@babel/polyfill';
22
import General from './_generalScripts';
33

44
const App = {

gulp/core/config/scripts.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,11 @@ module.exports = deepMerge({
9595
exclude: /node_modules/,
9696
loader: 'babel-loader',
9797
options: {
98-
presets: ['env'],
99-
plugins: ['transform-runtime']
98+
presets: ['@babel/preset-env'],
99+
plugins: [
100+
'@babel/plugin-transform-runtime',
101+
'@babel/plugin-transform-modules-commonjs'
102+
]
100103
}
101104
}
102105
]

0 commit comments

Comments
 (0)