Back to results
P0lip/rollup-plugin-tslib-resolve-id(opens in a new tab)
Language: JavaScript
- stars
- 4
- watchers
- 1
- forks
- 0
- open issues
- 0
- Last updated
- 08/18/2021
Language: JavaScript
Fixes 'tslib.js' is imported as an external by tslib.js?commonjs-proxy, but is already an existing non-external module id. error when bundling using commonjs plugin.
yarn add rollup-plugin-tslib-resolve-id --dev
Add the plugin to your rollup configuration:
import tslibResolveId from 'rollup-plugin-tslib-resolve-id'; export default { entry: 'src/index.js', plugins: [ tslibResolveId(), // other plugins ], };