2021-08-16 13:07:24 +08:00
|
|
|
var path = require("path");
|
|
|
|
|
2025-04-16 22:04:11 +08:00
|
|
|
/** @typedef {import("../../../WatchTestCases.template").Env} Env */
|
|
|
|
/** @typedef {import("../../../WatchTestCases.template").TestOptions} TestOptions */
|
|
|
|
|
|
|
|
/** @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: {
|
|
|
|
topLevelAwait: true,
|
|
|
|
outputModule: true
|
|
|
|
}
|
|
|
|
});
|