Skip to content

Conversation

@dcsaszar
Copy link
Contributor

@dcsaszar dcsaszar commented Nov 2, 2025

webpack-sources is a CommonJS module and requires default import syntax in ESM. This fixes the package import to work with Node's ESM loader.

Fixes #313

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

If yes, then include "BREAKING CHANGES:" in the first commit message body, followed by a description of what is breaking.

List any relevant issue numbers:

Description

See #313

webpack-sources is a CommonJS module and requires default import syntax
in ESM. This fixes the package import to work with Node's ESM loader.

Fixes #313
@shellscape
Copy link
Owner

thanks!

@shellscape shellscape merged commit ca8afa5 into shellscape:master Nov 2, 2025
3 checks passed
@dcsaszar dcsaszar deleted the dave-fix-313 branch November 2, 2025 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BREAKING CHANGE] SyntaxError importing RawSource from webpack-sources

2 participants