-
Notifications
You must be signed in to change notification settings - Fork 5
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
[suggestion] build manta-style code into memory #25
Comments
this was my first thought. but later i found somehow there might be external references in the config file. for example, you might need to maybe we could move the temporary folder to |
hmm. what kind of external references? i guess i need to read/use more |
external references as in you so TypeScript actually supports in-memory compilation. It provides |
Another "hole" is TypeScript doesn't rename (or maybe i don't know how) variables in the expressions created by the transformer. Say you create such statements: import MantaStyle from '@manta-style/runtime';
// ...
MantaStyle.doSomething(...); If our module target is var _a = require('@manta-style/runtime').default;
// ...
MantaStyle.doSomething(...);
So to solve this problem, i compile config files to ES Module version, then further to commonjs version with |
Probably they are not the same identifier node when you create the statement in the ast. |
Yep. Sad. |
Can we build manta-style code into memory and eval it in memory instead of build code into
.mantastyle-tmp
?The text was updated successfully, but these errors were encountered: