Comments (4)
Is this in dev? In dev you should be using the latest browser possible as the code isn't transpiled to lower browser targets for performance (by Vite). The error is likely due to Safari not recognizing ?.
. If you want to test lower browser versions, you should build your project first, and make sure you have the proper browser targets set, e.g. vite.build.target
(only covers syntax support, not polyfills).
from astro.
The bug is observed in both production build and dev. I'm trying to use astro for a website that I'm working on which is displayed in WKWebview of an iOS project. The minimum support version of this iOS project is iOS 13 which uses Safari 13.
Regarding polyfills, could you redirect me to relevant documentation which would help me achieve polyfill in this case so that I can support Safari 13 as well?
from astro.
Can you reduce this down further? There's probably a specific feature that's not working on Safari, outside of Svelte.
from astro.
Regarding polyfills, could you redirect me to relevant documentation which would help me achieve polyfill in this case so that I can support Safari 13 as well?
AFAIK Astro doesn't have an ootb way to add polyfills. @vitejs/plugin-legacy
also doesn't work well with SSR frameworks. You may want to use core-js
and manually import some polyfill modules for old browsers. Or use https://polyfill.io but some had reserves about it as it was sold to a company.
from astro.
Related Issues (20)
- Table of Contents not generated automatically in Astro components HOT 1
- Rewriting - Rewrite in the middleware but get a 404 HOT 3
- Passing functions from Astro into Svelte HOT 1
- The Astro got crashed when use the Container API and deploy on vercel with server mode HOT 4
- CSS Sibling Selectors Affecting <astro-island> Tags HOT 1
- Astro SSR + non-default Prisma schema cannot be bundled HOT 1
- The latest version of Svelte 5 doesn't work with Astro HOT 1
- Astro db build error: Cannot read properties of undefined (reading 'send') HOT 2
- No logs on Internal Server Error in node adapter
- Astro.rewrite not working with SSR dynamic routes
- Experimental rewrite: Response with status:500 does not trigger 500.astro in production HOT 1
- The `trailingSlash: βignoreβ` configuration does not work in the `public/` directory in the dev environment HOT 2
- Is there a date picker component in Astro, or is there a standard way to use third-party date picker component? HOT 7
- Unable to push seed data to production Astro DB when importing content collection
- SyntaxError: Unexpected number when running any Astro command with pnpm HOT 3
- @astro/solid-js conflicts with vite@5 HOT 4
- Component script in MDX gets loaded in different order compared to regular loading HOT 1
- Emmet Abbreviation suggestion takes priority over Astro suggestions HOT 2
- Regression: `getViteConfig` doesn't work after 4.9.3 release HOT 7
- Favicon or Icon not appearing in IOS Firefox on websites made with Astro.js HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from astro.