Skip to content

Commit 6a09746

Browse files
committed
Fix npm run build
1 parent 37f69ee commit 6a09746

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

packages/repack/react-dom/build.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import * as esbuild from 'esbuild';
88

99
(async () => {
10-
const context = await esbuild.context({
10+
const config = {
1111
alias: {
1212
'object-assign': '@msinternal/object-assign'
1313
},
@@ -34,11 +34,13 @@ import * as esbuild from 'esbuild';
3434
}
3535
}
3636
]
37-
});
37+
};
3838

3939
if (process.argv[2] === '--watch') {
40+
const context = await esbuild.context(config);
41+
4042
await context.watch();
4143
} else {
42-
await context.build();
44+
await esbuild.build(config);
4345
}
4446
})();

0 commit comments

Comments
 (0)