Fixed babel transpilation of jsesc and crypto-api

This commit is contained in:
n1474335 2018-11-21 17:47:56 +00:00
parent d6604e0008
commit cc35ec82eb
4 changed files with 31 additions and 21 deletions

View file

@ -1,5 +1,6 @@
const webpack = require("webpack");
const ExtractTextPlugin = require("extract-text-webpack-plugin");
const path = require("path");
/**
* Webpack configuration details for use with Grunt.
@ -58,8 +59,13 @@ module.exports = {
{
test: /\.m?js$/,
exclude: /node_modules\/(?!jsesc|crypto-api)/,
options: {
configFile: path.resolve(__dirname, "babel.config.js"),
cacheDirectory: true,
compact: false
},
type: "javascript/auto",
loader: "babel-loader?compact=false"
loader: "babel-loader"
},
{
test: /forge.min.js$/,