@pkgr/es-modules
v0.6.3
Published
Union collections of es modules mappings for pkgs without or with incorrect `module` field
Downloads
3,234
Readme
@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.