2025-07-16 22:29:28 +08:00
|
|
|
"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
|
|
|
|
}
|
|
|
|
});
|