webpack/test/configCases/scope-hoisting/dll-plugin/webpack.config.js

24 lines
446 B
JavaScript

"use strict";
const webpack = require("../../../../");
/** @type {import("../../../../").Configuration} */
module.exports = {
plugins: [
new webpack.DllReferencePlugin({
name: "function(id) { return {default: 'ok'}; }",
scope: "dll",
content: {
"./module": {
id: 1,
buildMeta: {
exportsType: "namespace"
},
exports: ["default"]
}
}
}),
new webpack.optimize.ModuleConcatenationPlugin()
]
};