Mauro Bieg
Mauro Bieg
Came here googling "cloudflare pages why bundle", and after reading the whole docs page, I still don't know why it's recommended. (Bundling adds a lot of complexity but I don't...
Thanks for the quick reply! True that adding the `name` makes the error go away in solid start, but it still initializes the server-side-rendered HTML with `0`, thus when you...
Yes! I came here looking for some way to opt out of polyfills. (for me it's the [Array.fromAsync](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/fromAsync#browser_compatibility), which has quite okay browser support nowadays). I read the whole README...
@tylersayshi I had the same problem, but the following worked for me: ```ts const defaultExport: { fetch: (req: Request) => Promise; } = { fetch }; export default defaultExport; ```
To provide another use-case for this: we have one app, with a public part and an admin-only part. I absolutely do not want to load _any_ of the JavaScript for...
Ah, I didn't think of React Native. Hm... not sure, but it's possible that using a [dynamic import](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import) could work: ```js const encodeBase64 = navigator.product === 'ReactNative' ? (await import('js-base64')).encode...
Yeah, you could use [this implementation](https://github.com/MaxArt2501/base64-js/blob/master/base64.js#L33). But polyfilling `URL` is probably going to be bigger.
Ah, I've never done React Native development, but [`react-native-url-polyfill` says](https://www.npmjs.com/package/react-native-url-polyfill): > React Native does include a polyfill for URL, but this polyfill is homemade — in order to keep it...
Either way, I would avoid publishing the bundled files to npm. (See e.g. this [StackOverflow question](https://stackoverflow.com/questions/69514389/best-practice-for-npm-package-with-es6-modules-bundle-or-not)). Not sure how the TypeScript conversion is going, but it's possible that using `tsc`...
see also https://github.com/netlify/netlify-cms/issues/2243