rollup-plugin-tsc-alias
v1.1.2
Published
Replace alias paths with relative paths after typescript compilation during rollup bundling (tsc-alias)
Downloads
2,287
Maintainers
Readme
Rollup plugin: tsc-alias
Replace alias paths with relative paths after typescript compilation during rollup bundling
Installation
npm
npm install rollup-plugin-tsc-alias --save-dev
yarn
yarn add rollup-plugin-tsc-alias --dev
Example
To run tsc-alias
after TS built add the following to rollup.config.js
:
import tscAlias from 'rollup-plugin-tsc-alias';
export default {
entry: './src/index.ts',
output: {
dest: './dist/bundle.js',
},
plugins: [
tscAlias()
]
};
Here are all the available options:
License
MIT