@pkgr/es-modules

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

@pkgr/es-modules

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

HomePage

https://github.com/rx-ts/pkgr/blob/master/packages/es-modules

Repository

https+https://github.com/rx-ts/pkgr