Jason Miller

Results 1189 comments of Jason Miller

Yeah - we might need to switch to this at some point. Currently we add an `?asset` suffix URLs to prevent them from being interpreted as imports, but that's sortof...

Looks like cjs-module-lexer won't land my `require()` tracking fix: https://github.com/guybedford/cjs-module-lexer/pull/10/ I published the dist files (both JS and WASM) to a [branch](https://github.com/developit/cjs-module-lexer/tree/expose-requires-dist) which we can vendor.

Hmm - @kurtextrem not sure what's going on - here's the output I get from your example: ```js const n=(n,s)=>s.isSJS?`${s.type}__sjs`:s;function s(){(s=>{const t=JSON.stringify({},n);JSON.parse(t)})()}function t(){}export{s as a,t as b}; ``` I left...

Seems like browserslist must be doing a dynamic `require()` to get the `extends` value. I think we should be able to allow-list it somehow here: https://github.com/preactjs/wmr/blob/99e56d782621a25e292977a74cff662ab5561c94/rollup.config.js#L131

Do we support `.ts` for configs?

Hiya @jacob-ebey! Your point about SEO is effectively where my brain went with this. I do see the value of providing a basename, but perhaps not via the router? We...

I'm a little worried about these AMD-specific parameters. Out of curiosity - did you try using `--name`? It should cause AMD output to use named define instead of anonymous. The...

As a thought, what about having an `--amdNamed` boolean option that causes `amd.id` to be set to `--name`?

If possible, I'd love to get a better understanding of why named define is useful. I've written a few AMD loaders in the past and only ever needed named defines...

I thought the default behavior of scrollTo(0,0) was instant? Are you seeing this on a specific browser?