diff options
author | 2022-06-15 08:50:05 -0400 | |
---|---|---|
committer | 2022-06-15 08:50:05 -0400 | |
commit | fc52321a888920beebb6b84f56d2f41791666e13 (patch) | |
tree | 7e2985d711457a586bc0239a766de9841ac86069 /scripts/index.js | |
parent | a7637e6b26c97497cf6de7088d0b3cdfb03eee8d (diff) | |
download | astro-fc52321a888920beebb6b84f56d2f41791666e13.tar.gz astro-fc52321a888920beebb6b84f56d2f41791666e13.tar.zst astro-fc52321a888920beebb6b84f56d2f41791666e13.zip |
Consolidate hydration scripts into just one (#3571)
* Remove redundant hydration scripts
* Prebuild the island JS
* Fix build
* Updates to tests
* Update more references
* Custom element test now has two classic scripts
* Account for non-default exports
* Restructure hydration directives
* Move nested logic into the island component
* Remove try/catch
Diffstat (limited to 'scripts/index.js')
-rwxr-xr-x | scripts/index.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/index.js b/scripts/index.js index dd789f032..249eac53d 100755 --- a/scripts/index.js +++ b/scripts/index.js @@ -13,6 +13,11 @@ export default async function run() { await copy(...args); break; } + case 'prebuild': { + const { default: prebuild } = await import('./cmd/prebuild.js'); + await prebuild(...args); + break; + } } } |