import run from '@rollup/plugin-run';
import typescript from "@rollup/plugin-typescript"
import tsConfigPaths from "rollup-plugin-tsconfig-paths"
export default {
input: 'test/test.ts',
output: {
file: 'dist/index.js',
format: 'cjs'
},
plugins: [
tsConfigPaths({tsConfigPath: 'tsconfig.json'}),
typescript({tsconfig: 'tsconfig.json'}),
run(),
]
};
Commenting run it transpiles. However with run() I get errors that modules aren't found specified by tsconfig.json paths aliases.
So it would be nice if you could add an example to rollup run how to run typecsript code with tsconfig.json.
Documentation Is:
Please Explain in Detail...
Your Proposal for Changes
Commenting run it transpiles. However with run() I get errors that modules aren't found specified by tsconfig.json paths aliases.
So it would be nice if you could add an example to rollup run how to run typecsript code with tsconfig.json.