esbuild-webpack-plugin icon indicating copy to clipboard operation
esbuild-webpack-plugin copied to clipboard

allow for overriding sourcemap option

Open sterlingwes opened this issue 5 years ago • 0 comments

We have a webpack configuration that specifies sourcemap configuration using plugins:

//... plugin array

    isDevServer
      ? new webpack.EvalSourceMapDevToolPlugin({
          columns: false, // equivalent to devtool: cheap-eval-source-map
        })
      : new webpack.SourceMapDevToolPlugin({
          append: false,
          filename: '[file].map',
        }),

Since we don't use the devtool config option we need a way to still have esbuild output sourcemaps

sterlingwes avatar Feb 08 '21 20:02 sterlingwes