Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8.0.0版本的打包产物不兼容低版本浏览器(?.操作符号) #291

Open
wogaozhixu opened this issue Jul 31, 2024 · 4 comments

Comments

@wogaozhixu
Copy link

🐛 Bug Report

A clear and concise description of what the bug is.
name: "querystring", lookup(e) { let t, {lookupQuerystring: r} = e; if ("undefined" !== typeof window) { let {search: e} = window.location; !window.location.search && window.location.hash?.indexOf("?") > -1 && (e = window.location.hash.substring(window.location.hash.indexOf("?"))); const n = e.substring(1).split("&"); for (let o = 0; o < n.length; o++) { const e = n[o].indexOf("="); e > 0 && n[o].substring(0, e) === r && (t = n[o].substring(e + 1)) } } return t }

To Reproduce

A minimal reproducible example.
A codesandbox example or similar
or at least steps to reproduce the behavior:

// Paste your code here

Expected behavior

A clear and concise description of what you expected to happen.

// Paste the expected results here

Your Environment

  • runtime version: i.e. node v14, deno, browser xy
  • i18next version: i.e. 19.5.3
  • os: Mac, Windows, Linux
  • any other relevant information
@jamuhl
Copy link
Member

jamuhl commented Jul 31, 2024

sorry, but the bug description is completely unclear to me

@adrai
Copy link
Member

adrai commented Jul 31, 2024

v8.0.0 is only compatible with newer browsers see changelog: #286

if you need to support older browsers without transpilation, use v7

@adrai
Copy link
Member

adrai commented Jul 31, 2024

//cc @VIKTORVAV99

@VIKTORVAV99
Copy link
Contributor

I'm really interested in how this is used as I would assume most people are using a build system to handle transpilation.

Could you share some insights into how you bundling your website?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants