source map loader

pull/3347/head
filip mertens 2 years ago committed by Aniket
parent 43a1580970
commit 28bf998614
  1. 2
      apps/remix-ide/project.json
  2. 11
      apps/remix-ide/webpack.config.js

@ -31,7 +31,7 @@
"configurations": {
"development": {
"extractLicenses": false,
"sourceMap": false,
"sourceMap": true,
"vendorChunk": true,
"optimization": false
},

@ -42,6 +42,7 @@ module.exports = composePlugins(withNx(), withReact(), (config) => {
"buffer": require.resolve("buffer/"),
"vm": require.resolve('vm-browserify'),
}
// add externals
config.externals = {
@ -71,6 +72,16 @@ module.exports = composePlugins(withNx(), withReact(), (config) => {
})
)
// souce-map loader
config.module.rules.push({
test: /\.js$/,
use: ["source-map-loader"],
enforce: "pre"
})
config.ignoreWarnings = [/Failed to parse source map/] // ignore source-map-loader warnings
// set minimizer
config.optimization.minimizer = [
new TerserPlugin({

Loading…
Cancel
Save