Closed thescientist13 closed 3 months ago
Introduces Worker threads as part of the greenwood serve lifecycle when expressed through the a file level export enabling it, which will ensure the page does not get executed in the global scope of the NodeJS process.
greenwood serve
// src/pages/products.js export const isolation = true;
This aims to help address various issues observed with trying to support DOM shims on the server
customElements.define
false
true
export const isolation = true
Related Issue
1117 (somewhat restores - https://github.com/ProjectEvergreen/greenwood/pull/1110)
Introduces Worker threads as part of the
greenwood serve
lifecycle when expressed through the a file level export enabling it, which will ensure the page does not get executed in the global scope of the NodeJS process.This aims to help address various issues observed with trying to support DOM shims on the server
customElements.define
already called for Lit SSR integration - https://github.com/thescientist13/greenwood-lit-ssr/pull/9Summary of Changes
false
true
TODO
Data sources / graph docs?- N / Aadapters / execute route module for- N / Aexport const isolation = true
false
true
ssr-route-worker filenames are a little clunkyget more options from the graph / module instead upfront instead of in execute route module- will save for https://github.com/ProjectEvergreen/greenwood/issues/991Question
true
by default?