mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
babel 6 -> 7
This commit is contained in:
parent
379d012b1f
commit
26c507398f
4 changed files with 1159 additions and 1368 deletions
|
|
@ -21,8 +21,11 @@ module.exports = function(publicPath, pro) {
|
|||
filename: '[name].js',
|
||||
publicPath: publicPath || 'rainloop/v/0.0.0/static/'
|
||||
},
|
||||
optimization: {
|
||||
concatenateModules: false,
|
||||
minimize: false
|
||||
},
|
||||
plugins: [
|
||||
// new webpack.optimize.ModuleConcatenationPlugin(),
|
||||
new webpack.DefinePlugin({
|
||||
'RL_COMMUNITY': !pro,
|
||||
'process.env': {
|
||||
|
|
@ -46,19 +49,29 @@ module.exports = function(publicPath, pro) {
|
|||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.js$/,
|
||||
test: /\.(js|ts)$/,
|
||||
loader: 'babel-loader',
|
||||
include: [devPath],
|
||||
options: {
|
||||
cacheDirectory: true,
|
||||
presets: [['env', {
|
||||
loose: loose,
|
||||
modules: false,
|
||||
targets: {
|
||||
browsers: ['last 3 versions', 'ie >= 9', 'firefox esr']
|
||||
}
|
||||
}], 'stage-0'],
|
||||
plugins: ['transform-runtime', 'transform-decorators-legacy']
|
||||
presets: [
|
||||
['@babel/preset-env', {
|
||||
loose: loose,
|
||||
modules: false,
|
||||
targets: {
|
||||
browsers: ['last 3 versions', 'ie >= 9', 'firefox esr']
|
||||
}
|
||||
}]
|
||||
],
|
||||
plugins: [
|
||||
['@babel/plugin-transform-runtime', {
|
||||
corejs: 2
|
||||
}],
|
||||
['@babel/plugin-proposal-decorators', {
|
||||
legacy: true
|
||||
}],
|
||||
'@babel/plugin-proposal-class-properties'
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue