From 8ac19c7060ac4ae1e0a8cccda302c5082959066c Mon Sep 17 00:00:00 2001 From: William Killerud Date: Fri, 15 Dec 2023 12:11:59 +0100 Subject: [PATCH] fix: include defineElement in client bundle Fixes for hydration, probably also CSR --- api/build.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/build.js b/api/build.js index 91df936..8519306 100755 --- a/api/build.js +++ b/api/build.js @@ -148,7 +148,8 @@ export async function build({ state, config, cwd = process.cwd() }) { setup(buildInstance) { buildInstance.onResolve( { - filter: /(content|fallback|lazy|scripts|src|server).*.(ts|js)$/, + filter: + /(content|fallback|content-entrypoint|fallback-entrypoint|lazy|scripts|src|server).*.(ts|js)$/, namespace: 'file', }, async (args) => { @@ -202,7 +203,7 @@ export async function build({ state, config, cwd = process.cwd() }) { async function buildRollupConfig(options) { const rollupConfig = []; for (const filepath of options) { - const input = filepath.replace('-entrypoint', ''); + const input = filepath; let outfile; if (filepath === CONTENT_ENTRY) {