Control: affects -1 rollup On Thu, 10 Oct 2019 14:16:44 +0530 Pirate Praveen <prav...@onenetbeyond.org> wrote: > Control: reassign -1 node-magic-string > > I think this comes from the inconsistent exports in es.js and cjs.js > > es.js has this line at the end, > > export { Bundle, SourceMap }; > > but cjs.js or umd.js does not export these. >
This patch fixes the issue. --- a/src/index-legacy.js +++ b/src/index-legacy.js @@ -2,6 +2,7 @@ import Bundle from './Bundle.js'; MagicString.Bundle = Bundle; +MagicString.SourceMap = SourceMap; MagicString.default = MagicString; // work around TypeScript bug https://github.com/Rich-Harris/magic-string/pull/121 export default MagicString; -- Pkg-javascript-devel mailing list Pkg-javascript-devel@alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel