Skip to content

Commit cc0da8e

Browse files
committed
Remove intermediate variable for Rollup
By removing the intermediate variable, we can use one less type annotation and let the type be inferred instead. This is great, because the type annotation comes from a dependency we eventually want to get rid of.
1 parent 4b037ea commit cc0da8e

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

packages/rollup/lib/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,7 @@ export function rollup(options) {
9898
) {
9999
const compiled = await formatAwareProcessors.process(file)
100100
const code = String(compiled.value)
101-
/** @type {SourceDescription} */
102-
const result = {code, map: compiled.map}
103-
return result
101+
return {code, map: compiled.map}
104102
}
105103
}
106104
}

0 commit comments

Comments
 (0)