@pkgr/es-modules

Union collections of es modules mappings for pkgs without or with incorrect `module` field

Usage no npm install needed!

<script type="module">
  import pkgrEsModules from 'https://cdn.skypack.dev/@pkgr/es-modules';
</script>

README

@pkgr/es-modules

npm npm bundle size npm bundle size

David Peer David David Dev

Union collections of es modules mappings for pkgs without or with incorrect module field.

TOC

Install

# yarn
yarn add -D @pkgr/es-modules

# npm
npm i -D @pkgr/es-modules

Usage

// rollup
import { entries } from '@pkgr/es-modules'
import alias from 'rollup-plugin-alias'

export default {
  plugins: [
    alias({
      entries,
    }),
  ],
}
// webpack
import { alias } from '@pkgr/es-modules'

export default {
  resolve: {
    alias,
  },
}

Changelog

Detailed changes for each release are documented in CHANGELOG.md.

License

MIT © JounQin@1stG.me