You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I look up how esbuild did and it just omit the runtime code. We can't follow it due to we need to execute the build output after bundling.
In the test environment, 5e7491e will always pretend that the runtime module belong to a facade entry, which makes him always generate the standalone chunk for the runtime module.
This also test the tree shaking step. import ... from '$runtime#' will easily tell us if we import runtime functions on demand.
Beyond that, the commit also ensures the runtime chunk is created on demand.
I consider that the current solution is in a balanced position, so the issue was closed.
Because the runtime code is larger, snapshotted it is difficult to review, we need to deal it.
The original discuss at #375
The text was updated successfully, but these errors were encountered: