Closed loynoir closed 1 year ago
@loynoir Did you try to replace the line export default class MagicString {
by export = class MagicString {
?
With commonjs, the current behavior maps the MagicString class to module.exports.default
.
Using export =
instead of export default
will map the MagicString class to module.exports
.
You'll find a more detailed explanation of the export =
syntax here.
https://github.com/microsoft/TypeScript/issues/54166
just a quick fix