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

Drop require-from-string to restore Webpack compatibility #577

Merged
merged 2 commits into from
Jan 4, 2022

Conversation

cameel
Copy link
Member

@cameel cameel commented Dec 22, 2021

Fixes #576.

require-from-string is a tiny package and we're even not using all of its features. It's also no longer maintained because floatdrop/require-from-string#18 is has not been fixed since 2018. This PR replaces it with a few lines of code and drops the dependency.

The real question is how do we test this properly? It passes our current tests but the problem exists only on Webpack.

Also, the author or the PR that broke Webpack compatibility claims that Webpack does not even provide module (floatdrop/require-from-string#6 (comment)). Not sure how to verify that.

@chriseth chriseth merged commit 6f8b14c into master Jan 4, 2022
@chriseth chriseth deleted the drop-require-from-string branch January 4, 2022 17:09
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.

Exception in require-from-string on Webpack: Can't resolve 'module'
2 participants