Closed SukkaW closed 8 months ago
The PR potentially closes huozhi/bunchee#340.
Previously, rollup-preserve-directives would return { code: [original input], map: null } when nothing changed, which might cause huozhi/bunchee#340.
rollup-preserve-directives
{ code: [original input], map: null }
The PR fixes that by returning null if no code changes happen during the phase.
null
@huozhi Would you like to test if the PR works?
Looks like it's an issue inside bunchee, since there's another prepend directive plugin. This PR could still be a good improvement 👍
The PR potentially closes huozhi/bunchee#340.
Previously,
rollup-preserve-directives
would return{ code: [original input], map: null }
when nothing changed, which might cause huozhi/bunchee#340.The PR fixes that by returning
null
if no code changes happen during the phase.@huozhi Would you like to test if the PR works?