How can I make a Quasar project (with vite) run on the minimum Chrome 61 browser without encountering a white screen? #16128
-
| How can I configure my project to run properly on Chrome 61 instead of just displaying a blank screen? I've been searching on Google for a while and found some solutions to similar issues, but they didn't work. Here is the information for my project: 
 I made the following modifications to the quasar.config.js file: 
 I also added "@vitejs/plugin-legacy": "1.8.2" to the devDependencies section of package.json. After making these modifications, the white screen issue still persists on Chrome 61. Please guide me on how to resolve this problem. Thank you for all your help! | 
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
-
| If you only need ES syntax retro-compatibility you can use this plugin https://github.com/marcofugaro/browserslist-to-esbuild BUT, this won't provide any support for new apis (In my case I want to use Object.hasOwn()) as explained here: https://esbuild.github.io/api/#target 
 If you need polyfills, like me, you need  
 Personally I don't need a super lightweight app (at least for now) so I simply used the fat (37kb gzipped), non-recommended, polyfills for modern browsers with the following config:       vitePlugins: [
        // ...
        ...legacy({
          // Debug with DEBUG=vite:legacy yarn build
          modernPolyfills: true, // Not recommended but easy compatibility for browsers of the browserslist target
        }),
        // ...
    ]Also Polyfill.io doesn't support hasOwn() for now | 
Beta Was this translation helpful? Give feedback.

If you only need ES syntax retro-compatibility you can use this plugin https://github.com/marcofugaro/browserslist-to-esbuild
to use base Esbuild config on browserlist one (and thus be more easy/consistent than what's recommended in Quasar's docs https://quasar.dev/quasar-cli-vite/browser-compatibility)
BUT, this won't provide any support for new apis (In my case I want to use Object.hasOwn()) as explained here: https://esbuild.github.io/api/#target