From fc52321a888920beebb6b84f56d2f41791666e13 Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Wed, 15 Jun 2022 08:50:05 -0400 Subject: 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 --- scripts/index.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts/index.js') 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; + } } } -- cgit v1.2.3