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

Enable plugins to be required without requirejs and passed to manager as "class" #59

Merged
merged 3 commits into from
Mar 8, 2018

Conversation

pmeijer
Copy link
Contributor

@pmeijer pmeijer commented Mar 8, 2018

The main use-case for this is to enable browser side execution of plugins when from an app specific build (with e.g. webpack) bundling the plugins and using webgme.build.classes.js to access the client.

This approach enables bundling the files without relying on requirejs (and replicating the configuration in webgme). In the future all common, plugin, client, etc. files should probably be converted to support commonJS (node "require") as well. If so, the entire client API could be made part of the bundle as well and the webgme.build.classes.js wouldn't have to be used.

@pmeijer pmeijer added this to the 2.19.6 milestone Mar 8, 2018
@pmeijer pmeijer requested a review from kecso March 8, 2018 20:26
@kecso kecso merged commit 3703732 into master Mar 8, 2018
@pmeijer pmeijer deleted the common-js-support branch March 9, 2018 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants