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
fix(module-source): address review comments on type definitions
- Remove `extends SourceMapHookDetails` from `TransformSourceParams`;
`source` is only available at the `sourceMapHook` call site, not in
the options/state bag. Inline the optional `sourceUrl`/`sourceMapUrl`
fields directly.
- Add `allowHidden?: boolean` to `TransformSourceParams` to match
runtime usage in `babel-plugin.js`, removing the `@ts-expect-error`.
- Make `SourceMapObject.file` optional per Source Map v3 spec.
- Use full tuple `[name, false, undefined]` for `hoistedDecls.push()`
instead of short `[name]`, removing the `@ts-expect-error`.
- Remove stale `@ts-expect-error` directives for `@babel/generator`
options now recognized by `@types/babel__generator`.
- Enable `exactOptionalPropertyTypes: true`.
- Add missing `typedoc.json`.
0 commit comments