I didn't get exact details, I was just adding ES6 code to ES5 module like this: ``` insert.transform((magicString, code) => `${code}\nexport default Module;`, { include: "src/wasm/engine.js", }), ``` and engine.js was not in sourcemap. without this plugin everything works fine.