Skip to content

Conversation

@mislav
Copy link
Owner

@mislav mislav commented Jun 3, 2025

By default, ncc with source map support generates a file called sourcemap-register.cjs that is imported from the main bundle. I am not familiar with the purpose of this extra implementation file, but it seems to me that this might be a compatibility layer meant for older versions of Node that did not have full support for source maps. Apparently, I never checked this extra file to version control and it caused import problems in the v3.3 release.

Since this action runs under Node 20 that has full support for source maps, I'm guessing that this compatibility later isn't needed anymore.

Fixes #245

By default, ncc with source map support generates a file called
`sourcemap-register.cjs` that is imported from the main bundle. I am not familiar
with the purpose of this extra implementation file, but it seems to me that this
might be a compatibility layer meant for older versions of Node that did not have
full support for source maps. Apparently, I never checked this extra file to
version control and it caused import problems in the v3.3 release.

Since this action runs under Node 20 that has full support for source maps, I'm
guessing that this compatibility later isn't needed anymore.
@mislav mislav merged commit 4f50505 into main Jun 3, 2025
2 checks passed
@mislav mislav deleted the source-maps branch June 3, 2025 12:18
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.

ERR_MODULE_NOT_FOUND: Cannot find module '/home/runner/work/_actions/mislav/bump-homebrew-formula-action/v[3]

2 participants