source map loader

pull/3344/head
filip mertens 2 years ago
parent 51369df1ff
commit b696b37624
  1. 2
      apps/remix-ide/project.json
  2. 11
      apps/remix-ide/webpack.config.js

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

@ -42,6 +42,7 @@ module.exports = composePlugins(withNx(), withReact(), (config) => {
"buffer": require.resolve("buffer/"), "buffer": require.resolve("buffer/"),
"vm": require.resolve('vm-browserify'), "vm": require.resolve('vm-browserify'),
} }
// add externals // add externals
config.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 // set minimizer
config.optimization.minimizer = [ config.optimization.minimizer = [
new TerserPlugin({ new TerserPlugin({

Loading…
Cancel
Save