web-module-linker

Tool functions to use ES6 modules as npm packages without transpiling

Usage no npm install needed!

<script type="module">
  import webModuleLinker from 'https://cdn.skypack.dev/web-module-linker';
</script>

README

web-module-linker

A tool class, to symlink modules out of the node_modules to a lib folder to use them in web apps as native es6 modules without transpiling.

Mainly used in postinstall.js.

It works in these plain vanilla es6 module based apps, which are not transpiled or compiled: