Skip to content

fix: compatibility with webpack dynamic import#31

Merged
jondubois merged 2 commits into
SocketCluster:masterfrom
Akuukis:master
Sep 20, 2018
Merged

fix: compatibility with webpack dynamic import#31
jondubois merged 2 commits into
SocketCluster:masterfrom
Akuukis:master

Conversation

@Akuukis

@Akuukis Akuukis commented Sep 19, 2018

Copy link
Copy Markdown
Contributor

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.

Comment thread scserver.js Outdated
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