Skip to content

Commit

Permalink
feat(core): support rollup.config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePlenkov authored and Coly010 committed Dec 11, 2024
1 parent a6d417f commit 11924ec
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/rollup/src/plugins/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,11 @@ async function buildRollupTarget(

const targets: Record<string, TargetConfiguration> = {};
targets[options.buildTargetName] = {
command: `rollup -c ${basename(
configFilePath
)} --configPlugin @rollup/plugin-typescript`,
command: `rollup -c ${basename(configFilePath)}${
configFilePath.endsWith('ts')
? ' --configPlugin @rollup/plugin-typescript'
: ''
}`,
options: { cwd: projectRoot },
cache: true,
dependsOn: [`^${options.buildTargetName}`],
Expand Down

0 comments on commit 11924ec

Please sign in to comment.