Skip to content

Commit a17d307

Browse files
authored
fix: node process production (#78)
1 parent e7d7001 commit a17d307

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

generate-node-libs.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { builtinModules } from 'module';
33
import { join } from 'path';
44

55
for (const builtinModule of builtinModules) {
6-
writeFile(new URL(join('nodelibs/node', `${builtinModule}.js`), import.meta.url), `\
6+
await writeFile(new URL(join('nodelibs/node', `${builtinModule}.js`), import.meta.url), `\
77
export { default } from 'node:${builtinModule}';
88
export * from 'node:${builtinModule}';
99
`);

nodelibs/node/process-production.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import process from 'node:./process.js';
2-
export * from 'node:./process.js';
1+
import process from 'node:process';
2+
export * from 'node:process';
33
export default process;
44
process.env.NODE_ENV = 'production';

0 commit comments

Comments
 (0)