Reproduction link or steps
https://stackblitz.com/edit/github-6evsbatm?file=src%2Findex.ts
// client
define: { __SSR__: 'false' },
// ssr
define: { __SSR__: 'true' },
What is expected?
/dist/ssr.mjs
//#region src/index.ts
function test1() {
const fn = () => {
console.log("ssr");
console.log("ssr");
console.log("ssr");
};
fn.stop = fn;
return fn;
}
function test2() {
const fn = () => {
console.log("ssr");
console.log("ssr");
console.log("ssr");
};
fn.stop = fn;
return fn;
}
//#endregion
export { test1, test2 };
// dist/client.mjs
//#region src/index.ts
function test1() {
const fn = () => {
console.log("client");
console.log("client");
console.log("client");
};
fn.stop = fn;
return fn;
}
function test2() {
const fn = () => {
console.log("client");
console.log("client");
console.log("client");
};
fn.stop = fn;
return fn;
}
//#endregion
export { test1, test2 };
What is actually happening?
Any additional comments?
No response
Reproduction link or steps
https://stackblitz.com/edit/github-6evsbatm?file=src%2Findex.ts
What is expected?
/dist/ssr.mjs
// dist/client.mjs
What is actually happening?
Any additional comments?
No response