You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
This discussion was converted from issue #1598 on September 30, 2023 19:56.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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.
Beta Was this translation helpful? Give feedback.
All reactions