![]() ![]() Tools must compile JavaScript and load polyfills. Legacy browsers support ES5 and don't support web components or newer DOM APIs.Tools must resolve bare module specifiers. Modern browsers support ES2019 and web components.While there are a large number of browsers with various support for modern web features, for simplicity we recommend grouping browsers into one of two categories: When developing an app using Lit, either your target browsers need to support those features natively, or your tools will need to handle them. These features are supported by the latest versions of major browsers (including Chrome, Edge, Safari, and Firefox) and most popular tools (such as Rollup, Webpack, Babel, and Terser)-with the exception of bare module specifier support in browsers. Lit uses modern web APIs such as, custom elements, shadow DOM, and ParentNode.Lit uses "bare module specifiers" to import modules.The most important things to know about Lit in order to work with various browsers and tools are that:
0 Comments
Leave a Reply. |