зеркало из https://github.com/mozilla/kitsune.git
26 строки
507 B
JavaScript
26 строки
507 B
JavaScript
const { merge } = require("webpack-merge");
|
|
const glob = require("glob");
|
|
|
|
const common = require("./webpack.common.js");
|
|
|
|
module.exports = merge(common, {
|
|
target: "node",
|
|
entry: {
|
|
tests: [...glob.sync("./kitsune/*/static/*/js/tests/*.js")],
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.js$/,
|
|
exclude: /node_modules/,
|
|
use: {
|
|
loader: "babel-loader",
|
|
options: {
|
|
presets: ["@babel/preset-env"],
|
|
},
|
|
},
|
|
},
|
|
],
|
|
},
|
|
});
|