rebuildjs 0.24.1 → 0.24.2

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.
Files changed (2) hide show
  1. package/build/index.js +3 -0
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  /// <reference types="../metafile_l0/index.d.ts" />
2
2
  /// <reference types="./index.d.ts" />
3
+ import { file_exists__waitfor } from 'ctx-core/fs'
3
4
  import { nullish__none_, run } from 'ctx-core/function'
4
5
  import { be, be_sig_triple_, memo_ } from 'ctx-core/rmemo'
5
6
  import { short_uuid_ } from 'ctx-core/uuid'
@@ -218,6 +219,8 @@ export function rebuildjs_plugin_() {
218
219
  if (cancel_()) return
219
220
  await rm(browser_asset_path, { force: true })
220
221
  if (cancel_()) return
222
+ await file_exists__waitfor(server_asset_path)
223
+ if (cancel_()) return
221
224
  await link(server_asset_path, browser_asset_path)
222
225
  }
223
226
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rebuildjs",
3
- "version": "0.24.1",
3
+ "version": "0.24.2",
4
4
  "description": "Reactive esbuild...simple hackable alternative to vite for Multi Page Apps",
5
5
  "keywords": [
6
6
  "reactive",