Skip to content

SourceMaps referenced but not written or referenced instead of inlined #22

@tholewebgods

Description

@tholewebgods

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions