Tal500

Results 152 comments of Tal500

> > @Rich-Harris It not only "for the sake of browsers that people just don't use any more". There's a big segment of embedded browsers, for example in Connected TVs,...

> I'm not sure that `typeof window !== 'undefined'` would be equivalent because I think it'd only get evaluated at runtime and not buildtime. Do you think it wouldn't be...

> closing as duplicate of #1950 I understand the relationship, but I don't understand why it's duplicated? Assuming #1950 will be solved, what will you substitute under `environment.browser` during packaging?...

> I think you'd need to bundle it twice, once with `import.meta.env.SSR` set to `true` and one with it set to `false` and then use the `exports` map to export...

I have two ideas how we may solve this problem and makes everyone happy, and they are both using a similar idea that raises an some issue, so I'll first...

Additional suggestion before releasing 1.0(assuming we're going in the path I mentioned), so there will be less breaking changes, one of the two: 1. Take the `browser` variable outside of...

> Hi there > > I need `import { beforeNavigate } from '$app/navigation'; ` in my library as this hook is to ensure the UI elements in the library and...

# Update for my use case I've found out that changing the `browser` definition to this one does get optimized well to `true` or `false`: ```js const browser = import.meta.env...

> How did you get Terser to optimize that to true or false? I'm assuming you used the define option perhaps? At first I gave a clean reproduction for you...

> I think we might need switch to using `${workspaceFolder}` in these settings to represent the current workspace folder to resolve problems like this. > > cc @Tal500 I'm up...