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
This is a propagation of a wrong type declaration of magic-string package, which is fixed in master branch in this Feb but not yet published to NPM: Rich-Harris/magic-string@b6fd47d
This prevents e.g. feeding OutputChunk output from generateBundle as a return value of another rollup plugin's load hook.
In order to resolve this issue, magic-string package must be updated in NPM with the current master branch, its version in rollup must be increased, and the type in src/rollup/type.d.ts must be updated.
The text was updated successfully, but these errors were encountered:
How Do We Reproduce?
Try using
map
property ofOutputBundle
object ingenerateBundle
hookas a return value
{ code, map }
of aload
hookExpected Behavior
Does not produce any type error.
Actual Behavior
There is a wrong type definition of
SourceMap.version
in https://github.com/rollup/rollup/blob/master/src/rollup/types.d.ts#L59magic-string
sets the version property as3
, but the type declaration declares its type asstring
.This is a propagation of a wrong type declaration of
magic-string
package, which is fixed in master branch in this Feb but not yet published to NPM: Rich-Harris/magic-string@b6fd47dThis prevents e.g. feeding
OutputChunk
output fromgenerateBundle
as a return value of another rollup plugin'sload
hook.In order to resolve this issue,
magic-string
package must be updated in NPM with the current master branch, its version in rollup must be increased, and the type insrc/rollup/type.d.ts
must be updated.The text was updated successfully, but these errors were encountered: