Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: replace import.meta.url with CJS shim #3996

Merged
merged 3 commits into from
Nov 12, 2024
Merged

fix: replace import.meta.url with CJS shim #3996

merged 3 commits into from
Nov 12, 2024

Conversation

AlCalzone
Copy link
Member

@AlCalzone AlCalzone commented Nov 12, 2024

fixes the new error "The argument 'filename' must be ..." reported in #3995

fixes: #3995

esbuild-import-meta-url-shim.js Dismissed Show dismissed Hide dismissed
@coveralls
Copy link

coveralls commented Nov 12, 2024

Pull Request Test Coverage Report for Build 11803828838

Details

  • 0 of 14 (0.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.02%) to 21.071%

Changes Missing Coverage Covered Lines Changed/Added Lines %
esbuild-import-meta-url-shim.js 0 5 0.0%
esbuild.js 0 9 0.0%
Totals Coverage Status
Change from base Build 11800505793: -0.02%
Covered Lines: 3946
Relevant Lines: 19916

💛 - Coveralls

const pkgJson = require('./' + pkgJsonPath)
cleanPkgJson(pkgJson)
delete pkgJson.scripts
delete pkgJson.exports
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@robertsLando Do you remember why this was necessary? This is breaking the build now, as Z-Wave JS internally makes heavy use of the exports field.
I don't see any difference in bundle size when I remove it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The clean was mostly for pkg side so there shouldn’t be any side effect removing it

@AlCalzone AlCalzone merged commit c156075 into master Nov 12, 2024
9 checks passed
@AlCalzone AlCalzone changed the title fix: replace import.meta.url with CJS shim fix: replace import.meta.url with CJS shim Nov 12, 2024
@AlCalzone AlCalzone deleted the fix-build branch November 12, 2024 19:10
@AlCalzone AlCalzone restored the fix-build branch November 12, 2024 19:10
@AlCalzone AlCalzone deleted the fix-build branch November 12, 2024 19:10
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.

9.27.0 linux won't start
3 participants