8000 fix(connect): fix webpack module resolution for browsers by jrdn91 · Pull Request #798 · permaweb/ao · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(connect): fix webpack module resolution for browsers #798

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

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

jrdn91
Copy link
Contributor
@jrdn91 jrdn91 commented Jun 17, 2024

Related to PR #792 and issue #526

This updates the exports object in the connect package.json file to add a line that Webpack looks for. This resolves cases of using Webpack in the browser for bundling which NextJS uses under the hood.

We also add an escape hatch for those using Webpack for a server application to fix issues that may be cause by webpack wanting to resolve to the browser file.

The README is updated to reflect this.

@jrdn91 jrdn91 requested a review from TillaTheHun0 June 17, 2024 16:09
Copy link
Collaborator
@TillaTheHun0 TillaTheHun0 left a comment

Choose a reason for hiding this comment

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

LGTM!

@jrdn91 jrdn91 merged commit f728cfc into main Jun 18, 2024
3 checks passed
@jrdn91 jrdn91 deleted the jrdn91/webpack-import-aoconnect-fix branch June 18, 2024 14: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.

2 participants
0