mirror of
https://github.com/rubyjs/mini_racer
synced 2023-03-27 23:21:28 -04:00
25 lines
547 B
JavaScript
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"
|
|
}
|
|
};
|