webpack/test/configCases/async-library/1-use-library/webpack.config.js

20 lines
381 B
JavaScript
Raw Normal View History

"use strict";
2025-04-22 18:49:30 +08:00
const path = require("path");
2021-08-16 13:07:24 +08:00
2025-04-16 22:04:11 +08:00
/** @type {(env: Env, options: TestOptions) => import("../../../../types").Configuration} */
2021-08-16 13:07:24 +08:00
module.exports = (env, { testPath }) => ({
target: "node14",
output: {
chunkLoading: "import"
},
resolve: {
alias: {
library: path.resolve(testPath, "../0-create-library/lib.js")
}
},
experiments: {
outputModule: true
}
});