1
0
Fork 0
mirror of https://github.com/rubyjs/mini_racer synced 2023-03-27 23:21:28 -04:00
mini_racer/examples/source-map-support/webpack.config.js
Ian Ker-Seymer 723958f4da Add example of using source-map-support (#130)
* Add example of using source-map-support

* Address PR comments
2019-03-12 16:03:08 +11:00

25 lines
547 B
JavaScript

module.exports = {
mode: "production",
entry: "./index.jsx",
// This will put our source maps in a seperate .map file which we will read
// later
devtool: "source-map",
module: {
rules: [
{
test: /\.jsx?$/,
exclude: /node_modules/,
use: {
loader: "babel-loader"
}
}
]
},
output: {
library: "webpackLib",
libraryTarget: "umd",
// This is necessary to make webpack not define globals on the non-existent
// 'window' object
globalObject: "this"
}
};