包详细信息

rollup-plugin-tslib-resolve-id

P0lip49MIT0.0.0

Aliases tslib module ids

rollup, rollup-plugin

自述文件

rollup-plugin-tslib-resolve-id

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.

Getting started

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
    ],
};