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

modern syntax #27

Closed
mightyaleksey opened this issue Aug 31, 2015 · 2 comments
Closed

modern syntax #27

mightyaleksey opened this issue Aug 31, 2015 · 2 comments
Milestone

Comments

@mightyaleksey
Copy link
Member

Thanks to @pocketjoso we found out, that its impossible to adjust options for the require hook in the modern syntax. According to the http://calculist.org/blog/2012/06/29/static-module-resolution/

This import is resolved at compile time — that is, before the script starts executing. All the imports and exports of the declarative module dependency graph are resolved before execution.

It makes futile to adjust it right after the import. So have to look for another options :(
#6 (comment)

@mightyaleksey
Copy link
Member Author

Just thought about to make the way to configure hook via external file, similar to gulpfile.js. Presumably it will solve the issue with the es6 imports.

@mightyaleksey
Copy link
Member Author

Eventually I made preset module which uses cmrh.conf.js file.

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