MDL-75012 js: Bump Babel dependencies

Please note that whilst some dependencies have higher versions
available, these are not compatible at this time.
This commit is contained in:
Andrew Nicols
2023-02-28 23:19:40 +08:00
parent 8ed6cc973c
commit bf99f67aae
3 changed files with 595 additions and 311 deletions
+8 -1
View File
@@ -350,7 +350,7 @@ module.exports = function(grunt) {
};
};
const terser = require('rollup-plugin-terser').terser;
const terser = require('@rollup/plugin-terser');
// Project configuration.
grunt.initConfig({
@@ -376,6 +376,13 @@ module.exports = function(grunt) {
sourcemap: true,
treeshake: false,
context: 'window',
// Treat all modules as external and do not try to resolve them.
// https://rollupjs.org/configuration-options/#external
// We do not need to resolve them as each module is transpiled individually and there is no tree shaking
// or combining of dependencies.
external: true,
plugins: [
rateLimit({initialDelay: 0}),
babel({
+584 -305
View File
File diff suppressed because it is too large Load Diff
+3 -5
View File
@@ -4,14 +4,15 @@
"description": "Moodle",
"devDependencies": {
"@babel/core": "7.17.5",
"@babel/eslint-parser": "^7.19.1",
"@babel/plugin-proposal-class-properties": "7.16.7",
"@babel/plugin-proposal-json-strings": "7.16.7",
"@babel/plugin-syntax-dynamic-import": "7.8.3",
"@babel/plugin-syntax-import-meta": "7.10.4",
"@babel/preset-env": "7.16.11",
"@rollup/plugin-terser": "^0.4.0",
"ajv": "^8.12.0",
"async": "^3.2.4",
"babel-eslint": "10.1.0",
"babel-plugin-system-import-transformer": "^4.0.0",
"babel-plugin-transform-es2015-modules-amd-lazy": "2.0.1",
"eslint": "^8.33.0",
@@ -30,7 +31,7 @@
"jshint": "^2.13.6",
"node-sass": "^8.0.0",
"postcss-scss": "^4.0.6",
"rollup-plugin-terser": "^7.0.2",
"rollup": "^3.17.3",
"semver": "^7.3.8",
"shifter": "https://github.com/andrewnicols/shifter/releases/download/v1.2.0_moodle-slim-0/shifter-1.2.0_moodle-slim-0.tar.gz",
"stylelint": "^14.16.1",
@@ -41,9 +42,6 @@
"engines": {
"node": ">=18.12.0 <19"
},
"dependencies": {
"@babel/eslint-parser": "^7.17.0"
},
"browserslist": [
">0.25%",
"last 2 versions",