![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
web-components-starter
Advanced tools
mkdir -p hello-web-components \
&& cd hello-web-components \
&& npm init -y
npm i web-components-starter
cp node_modules/web-components-starter/dist/build-ie11-iife/index.html ./
export C=container I=index N=iife WCS=web-components-starter \
&& sed "s#./$N/main.js#./node_modules/$WCS/dist/build-ie11-$N/$N/main.js#g" ./$I.html > $I.html.new \
&& mv index.html.new index.html
npx serve -s .
npm run start
- by default builds a view targeting IE11+ (from IE11, to Edge, Chrome, Firefox, and Safari)
npm run start-custom-elements-shady-dom
- targeting browsers after IE11 (a Custom Elements v1 and shady DOM polyfill only)
npm run start-no-polyfills
- targets evergreen browsers supporting Custom Elements v1 and shadow DOM (builds a minimal view in a "vanilla js" style)
FAQs
A Web Components starter project
The npm package web-components-starter receives a total of 1 weekly downloads. As such, web-components-starter popularity was classified as not popular.
We found that web-components-starter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.