We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37f69ee commit 6a09746Copy full SHA for 6a09746
1 file changed
packages/repack/react-dom/build.js
@@ -7,7 +7,7 @@
7
import * as esbuild from 'esbuild';
8
9
(async () => {
10
- const context = await esbuild.context({
+ const config = {
11
alias: {
12
'object-assign': '@msinternal/object-assign'
13
},
@@ -34,11 +34,13 @@ import * as esbuild from 'esbuild';
34
}
35
36
]
37
- });
+ };
38
39
if (process.argv[2] === '--watch') {
40
+ const context = await esbuild.context(config);
41
+
42
await context.watch();
43
} else {
- await context.build();
44
+ await esbuild.build(config);
45
46
})();
0 commit comments