electrolyte icon indicating copy to clipboard operation
electrolyte copied to clipboard

Node_module factory functions not instantiated

Open Mistborn94 opened this issue 9 years ago • 1 comments

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.

Mistborn94 avatar Apr 07 '15 12:04 Mistborn94

+1

uetkaje avatar Nov 07 '15 08:11 uetkaje