Skip to content

fix(browser): redirect main to dist on browsers#742

Merged
Stuk merged 1 commit intoStuk:masterfrom
jahed:fix/webpack-5-async-failure
Feb 10, 2021
Merged

fix(browser): redirect main to dist on browsers#742
Stuk merged 1 commit intoStuk:masterfrom
jahed:fix/webpack-5-async-failure

Conversation

@jahed
Copy link
Copy Markdown
Contributor

@jahed jahed commented Feb 6, 2021

Fixes #724

Notes

#724 may be a bug with Webpack 5's . resolution. The standard isn't very well documented so it's hard to know expected behaviour.

However, I think it makes sense to redirect ./lib/index rather than . as it's the main module. Browserify's example uses this approach. This also fixes the Webpack 5 issue.

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.

generateAsync doesn't work and there was no error

2 participants