|
@@ -14,6 +14,28 @@ module.exports = merge(common, {
|
|
|
],
|
|
|
module: {
|
|
|
rules: [
|
|
|
+ {
|
|
|
+ test: /\.js$/,
|
|
|
+ include: /src/,
|
|
|
+ use: {
|
|
|
+ loader: 'babel-loader',
|
|
|
+ options: {
|
|
|
+ presets: [
|
|
|
+ ["@babel/preset-env", {
|
|
|
+ "targets": {
|
|
|
+ "browsers": ["ie 11"]
|
|
|
+ }
|
|
|
+ }]
|
|
|
+ ],
|
|
|
+ plugins: [
|
|
|
+ '@babel/plugin-proposal-class-properties',
|
|
|
+ '@babel/plugin-proposal-nullish-coalescing-operator',
|
|
|
+ '@babel/plugin-proposal-optional-chaining',
|
|
|
+ '@babel/plugin-syntax-dynamic-import'
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
{
|
|
|
test: /\.scss$/,
|
|
|
use: [
|