Problem description
When inlining a script using
new InlineSourceWebpackPlugin({
compress: true,
noAssetMatch: "error",
}),
and
<script inline inline-asset="foo-main.+\.js$" inline-asset-delete></script>
The asset to be inlined is not located in the physical filesystem, but emitted by Webpack.
The resulting file references a SourceMap like so:
//# sourceMappingURL=foo.0d0fb7084e53fd4fd4b3.js.map
but the file is not present in the Filesystem.
Expected behavior
The SourceMap
- is inlined or
- .map file is written to the proper location