@serenity-is/tsbuild 6.9.10 → 8.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -125,7 +125,7 @@ export const esbuildOptions = (opt) => {
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
export const build = async (opt) => {
|
|
128
|
-
|
|
128
|
+
opt = esbuildOptions(opt);
|
|
129
129
|
|
|
130
130
|
if (opt.watch) {
|
|
131
131
|
// this somehow resolves the issue that when debugging is stopped
|
|
@@ -136,9 +136,7 @@ export const build = async (opt) => {
|
|
|
136
136
|
|
|
137
137
|
delete opt.watch;
|
|
138
138
|
const context = await esbuild.context(opt);
|
|
139
|
-
await context.rebuild()
|
|
140
139
|
await context.watch();
|
|
141
|
-
context.dispose();
|
|
142
140
|
}
|
|
143
141
|
else {
|
|
144
142
|
delete opt.watch;
|