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

Requirement to use Babel Loader? #6

Open
josephliccini opened this issue Mar 29, 2017 · 2 comments
Open

Requirement to use Babel Loader? #6

josephliccini opened this issue Mar 29, 2017 · 2 comments

Comments

@josephliccini
Copy link

I compile my JS to TS in a separate step (outside of webpack).

Output in the final bundle is still a lamda

 { path: 'search', loadChildren: () => __webpack_require__(580)("SearchResultsModule") },

can we just output a regular function instead?

@josephliccini
Copy link
Author

Also, when running this in an ES6 environment, Angular throws an exception because the value for loadChildren must be function, and not a lamda. I can attach error here in a bit.

@josephliccini
Copy link
Author

image

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

1 participant