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
refactor: change dynamic import to work with bundlers #1905
Conversation
Moving the './' path to the require statement allows bundlers to find the api.js and stub_api.js files
👋 thank you for the contribution. It looks like it should work correctly, but Node v18.19.0 has introduced an issue in our CI. I have a PR out to an upstream module solve that problem and we can hopefully get it dealt with soon. |
The fix has been landed in our repo. @atodd can you rebase your branch please? |
@atodd just for my own edification can you explain your fix? Your change just moves the |
@bizob2828 My understanding (at least for the bundlers I have used, mainly Vite and Webpack) is that |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1905 +/- ##
=======================================
Coverage 96.88% 96.88%
=======================================
Files 209 209
Lines 39872 39872
=======================================
Hits 38631 38631
Misses 1241 1241
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Moving the './' path to the require statement allows bundlers to find the api.js and stub_api.js files
Description
Move path for api dynamic import to require statement in
initApi
.Related Issues
Closes #1904