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: compatibility with webpack dynamic import #31

Merged
merged 2 commits into from
Sep 20, 2018
Merged

fix: compatibility with webpack dynamic import #31

merged 2 commits into from
Sep 20, 2018

Conversation

Akuukis
Copy link
Contributor

@Akuukis Akuukis commented Sep 19, 2018

Currently socketcluster-server can't be used with webpack due how it's dynamic import is implemented. In case of require(var) webpack doesn't bundle anything with it.

Webpack requires that require module name is a static string, or at least starts with static string. This PR provides explicit strings to dynamic require for compatibility with Webpack.

Please add any other compatible modules and review the error message.

scserver.js Outdated Show resolved Hide resolved
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