Skip to content

Commit c11fa65

Browse files
test: keep the inline module type intact on windows
1 parent e6af856 commit c11fa65

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • test/configCases/loader-import-module/build-time-types

‎test/configCases/loader-import-module/build-time-types/loader.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ module.exports = async function loader() {
99
* @returns {Promise<unknown>} its exports, with bytes as a plain array
1010
*/
1111
const load = async (request) => {
12-
const exports = await this.importModule(path.resolve(__dirname, request));
12+
const exports = await this.importModule(request);
1313
return exports instanceof Uint8Array ? Array.from(exports) : exports;
1414
};
15-
const file = path.resolve(__dirname, "file.txt");
15+
const file = path.join(this.context, "file.txt");
1616
/** @type {Record<string, unknown>} */
1717
const values = {};
1818
for (const type of [

0 commit comments

Comments
 (0)