-
Notifications
You must be signed in to change notification settings - Fork 732
Description
Reproduction link or steps
What is expected?
As an example, any mention of ~effect/time/DateTime should be missing. But ~effect/Channel, ~effect/Deferred, others, all get tree shaken by rollup.
What is actually happening?
Code like:
//#region node_modules/effect/dist/internal/dateTime.js
/** @internal */
const TypeId$8 = "~effect/time/DateTime";
/** @internal */
const TimeZoneTypeId = "~effect/time/DateTime/TimeZone";
const Proto = {
[TypeId$8]: TypeId$8,
pipe() {
return pipeArguments(this, arguments);
},
[NodeInspectSymbol]() {
return this.toString();
},
toJSON() {
return toDateUtc$1(this).toJSON();
}
};
({ ...Proto });
({ ...Proto });
const ProtoTimeZone = {
[TimeZoneTypeId]: TimeZoneTypeId,
[NodeInspectSymbol]() {
return this.toString();
}
};
({ ...ProtoTimeZone });
({ ...ProtoTimeZone });And if you use @rollup/plugin-node-resolve, things get even weirder. ~effect/persistence/Redis appears in the output (but I don't know if this plugin is used by vite or what).
System Info
System:
OS: Linux 6.19 Arch Linux
CPU: (24) x64 AMD Ryzen AI 9 HX 370 w/ Radeon 890M
Memory: 23.25 GB / 30.63 GB
Container: Yes
Shell: 5.9 - /usr/bin/zsh
Binaries:
Node: 24.14.0 - /run/user/1000/fnm_multishells/3391_1772908814015/bin/node
pnpm: 10.30.3 - /run/user/1000/fnm_multishells/3391_1772908814015/bin/pnpm
bun: 1.3.10 - /usr/bin/bun
Deno: 2.7.4 - /usr/bin/deno
Browsers:
Chrome: 145.0.3800.97
Chromium: 145.0.7632.159
Firefox: 148.0
Firefox Developer Edition: 148.0
npmPackages:
rolldown: 1.0.0-rc.7 => 1.0.0-rc.7Any additional comments?
I experienced this when trying out vite 8, and narrowed it down to this.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Type
Fields
Give feedbackPriority
None yet
Effort
None yet