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: make import mqtt from 'mqtt' work in browsers #1734

Merged
merged 5 commits into from
Nov 10, 2023

Conversation

robertsLando
Copy link
Member

@robertsLando robertsLando commented Nov 10, 2023

Users will be able to use import mqtt from 'mqtt' directly without using /dist imports

Fixes #1733

Users will be able to use `import mqtt from 'mqtt'` directly without using `/dist` imports
Copy link

codecov bot commented Nov 10, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (71e6da7) 81.03% compared to head (48a9348) 81.03%.

❗ Current head 48a9348 differs from pull request most recent head 4f767ed. Consider uploading reports for the commit 4f767ed to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1734   +/-   ##
=======================================
  Coverage   81.03%   81.03%           
=======================================
  Files          21       21           
  Lines        1366     1366           
  Branches      323      323           
=======================================
  Hits         1107     1107           
  Misses        182      182           
  Partials       77       77           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@robertsLando robertsLando changed the title fix(browser): correctly handle browser imports fix(browser): make import mqtt from 'mqtt' work in browsers Nov 10, 2023
@robertsLando robertsLando changed the title fix(browser): make import mqtt from 'mqtt' work in browsers fix: make import mqtt from 'mqtt' work in browsers Nov 10, 2023
@robertsLando robertsLando merged commit 80e29a9 into main Nov 10, 2023
7 checks passed
@robertsLando robertsLando deleted the fix-browser-import branch November 10, 2023 10: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.

Vite not working with v5.2.0: Uncaught SyntaxError: ambiguous indirect export: default
1 participant