Unverified Commit 7a32d581 authored by Tasso Evangelista's avatar Tasso Evangelista Committed by GitHub
Browse files

Replace eval-based source maps (#136)

parent 52fcedb0
......@@ -3,9 +3,6 @@
const path = require('path');
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
const ReplacePlugin = require('webpack-plugin-replace');
const pkg = require('./package.json');
module.exports = (env, argv) => ({
entry: {
......@@ -18,7 +15,7 @@ module.exports = (env, argv) => ({
libraryTarget: 'umd',
umdNamedDefine: true,
},
devtool: argv.mode === 'production' ? 'source-map' : 'eval-source-map',
devtool: argv.mode === 'production' ? false : 'source-map',
module: {
rules: [
// {
......
......@@ -15,7 +15,7 @@ module.exports = (env, { mode = 'production' }) => ({
libraryTarget: 'umd',
umdNamedDefine: true,
},
devtool: mode === 'production' ? false : 'eval-source-map',
devtool: mode === 'production' ? false : 'source-map',
module: {
rules: [
{
......
......@@ -17,7 +17,7 @@ module.exports = (env, argv) => ({
libraryTarget: 'umd',
umdNamedDefine: true,
},
devtool: argv.mode === 'production' ? 'source-map' : 'eval-source-map',
devtool: argv.mode === 'production' ? false : 'source-map',
module: {
rules: [
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment