mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-01 03:27:43 +08:00
Drop the use if Babel transcompiler
This commit is contained in:
parent
c67d77bd57
commit
ff13ff688c
3 changed files with 25 additions and 902 deletions
|
@ -42,11 +42,6 @@
|
|||
],
|
||||
"readmeFilename": "README.md",
|
||||
"devDependencies": {
|
||||
"@babel/core": "7.8.7",
|
||||
"@babel/plugin-proposal-class-properties": "7.8.3",
|
||||
"@babel/plugin-proposal-decorators": "7.8.3",
|
||||
"@babel/preset-env": "7.8.7",
|
||||
"@babel/runtime-corejs3": "^7.12.13",
|
||||
"babel-eslint": "10.1.0",
|
||||
"core-js": "^3.8.3",
|
||||
"eslint": "6.8.0",
|
||||
|
@ -75,7 +70,6 @@
|
|||
"dependencies": {
|
||||
"gulp-rollup-2": "^1.2.1",
|
||||
"rollup": "^2.38.0",
|
||||
"rollup-plugin-babel": "^4.4.0",
|
||||
"rollup-plugin-external-globals": "^0.6.1",
|
||||
"rollup-plugin-html": "^0.2.1",
|
||||
"rollup-plugin-includepaths": "^0.2.4",
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
/* SnappyMail Webmail (c) SnappyMail Team | Licensed under AGPL 3 */
|
||||
const rollup2 = require('gulp-rollup-2');
|
||||
const babel = require('rollup-plugin-babel');
|
||||
const includePaths = require('rollup-plugin-includepaths');
|
||||
const externalGlobals = require('rollup-plugin-external-globals');
|
||||
const html = require('rollup-plugin-html');
|
||||
|
@ -13,30 +12,6 @@ let includePathOptions = {
|
|||
extensions: ['.js', '.html']
|
||||
};
|
||||
|
||||
let babelConfig = {
|
||||
exclude: 'node_modules/**',
|
||||
babelrc: false,
|
||||
presets: [
|
||||
[
|
||||
'@babel/preset-env',
|
||||
{
|
||||
targets: {"chrome": "60"},
|
||||
loose: true,
|
||||
modules: false
|
||||
}
|
||||
]
|
||||
],
|
||||
plugins: [
|
||||
[
|
||||
'@babel/plugin-proposal-decorators',
|
||||
{
|
||||
legacy: true
|
||||
}
|
||||
],
|
||||
'@babel/plugin-proposal-class-properties'
|
||||
]
|
||||
};
|
||||
|
||||
exports.rollupJS = (inputFile) =>
|
||||
rollup2.src({
|
||||
external: ['ko'],
|
||||
|
@ -45,7 +20,6 @@ exports.rollupJS = (inputFile) =>
|
|||
{file: config.paths.staticJS + inputFile, format: 'iife'}
|
||||
],
|
||||
plugins: [
|
||||
babel(babelConfig),
|
||||
includePaths(includePathOptions),
|
||||
externalGlobals({
|
||||
ko: 'ko'
|
||||
|
|
Loading…
Reference in a new issue