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

Node_module factory functions not instantiated #18

Open
Mistborn94 opened this issue Apr 7, 2015 · 1 comment
Open

Node_module factory functions not instantiated #18

Mistborn94 opened this issue Apr 7, 2015 · 1 comment

Comments

@Mistborn94
Copy link

I am experiencing an issue where my factory components that are also node modules are not instantiated but the functions are marked as literals.

The statement module['@literal'] = true; in loaders/node_modules (line 6) is causing this. Changing it to if (module['@literal'] === undefined) module['@literal'] = true; should solve the problem.

Another option is to remove the above mentioned line entirely and use the container's _registerModule function. The default pattern for anything that is not a function is already literal there.

@uetkaje
Copy link

uetkaje commented Nov 7, 2015

+1

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

No branches or pull requests

2 participants