Giter VIP home page Giter VIP logo

Comments (8)

bluwy avatar bluwy commented on September 12, 2024 1

It seems correct to me. It's taking all the feature set and get the highest browser version that supports all the feature set. Probably this view is better https://caniuse.com/?feats=mdn-javascript_builtins_array_findlast,mdn-javascript_builtins_array_findlastindex,mdn-javascript_grammar_hashbang_comments,mdn-javascript_builtins_weakmap_symbol_as_keys,mdn-javascript_builtins_array_toreversed,mdn-javascript_builtins_array_tosorted,mdn-javascript_builtins_array_tospliced,mdn-javascript_builtins_array_with (scroll to bottom). It looks like firefox doesn't have full es2023 compat yet though:
image

Maybe we have to omit the firefox entry.

from vite.

btea avatar btea commented on September 12, 2024 1

Thank you very much for your guidance. ❤️

from vite.

stackblitz avatar stackblitz commented on September 12, 2024

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

from vite.

bluwy avatar bluwy commented on September 12, 2024

We need to extend this list for 2023:

const esMap: Record<number, string[]> = {
// https://caniuse.com/?search=es2015
2015: ['chrome49', 'edge13', 'safari10', 'firefox44', 'opera36'],
// https://caniuse.com/?search=es2016
2016: ['chrome50', 'edge13', 'safari10', 'firefox43', 'opera37'],
// https://caniuse.com/?search=es2017
2017: ['chrome58', 'edge15', 'safari11', 'firefox52', 'opera45'],
// https://caniuse.com/?search=es2018
2018: ['chrome63', 'edge79', 'safari12', 'firefox58', 'opera50'],
// https://caniuse.com/?search=es2019
2019: ['chrome73', 'edge79', 'safari12.1', 'firefox64', 'opera60'],
// https://caniuse.com/?search=es2020
2020: ['chrome80', 'edge80', 'safari14.1', 'firefox80', 'opera67'],
// https://caniuse.com/?search=es2021
2021: ['chrome85', 'edge85', 'safari14.1', 'firefox80', 'opera71'],
// https://caniuse.com/?search=es2022
2022: ['chrome94', 'edge94', 'safari16.4', 'firefox93', 'opera80'],
}

https://caniuse.com/?search=es2023

from vite.

btea avatar btea commented on September 12, 2024

@bluwy caniuse also seems unable to determine the browser version corresponding to es2023. 🤔

And I checked that the browser corresponding to the previous es version seems to be somewhat different from the current code.

screen

from vite.

btea avatar btea commented on September 12, 2024

Thanks for the detailed instructions. I don't seem to be able to use this site very well. 😅

from vite.

btea avatar btea commented on September 12, 2024

I searched for es2017 and it looks like there seems to be some difference in the compatible browser versions and in the code.
image

image

from vite.

bluwy avatar bluwy commented on September 12, 2024

You should compare with the feature summary section (click on "Features support list" on https://caniuse.com/?search=es2017), it seems correct to me for es2017:
image

from vite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.