kentcdodds / babel-plugin-preval

🐣 Pre-evaluate code at build-time
https://npm.im/babel-plugin-preval
MIT License
1.36k stars 71 forks source link

run without babel (webpack) #60

Closed no-more closed 6 years ago

no-more commented 6 years ago

Hello,

This project looks amazing ! I was wondering if it could be used without babel. I'm currently using webpack and trying to implement angular AOT. But this include some limitations that this project could solve. But I need to preval only before aot is run and no other transformation. That's why I don't need babel process.

Thanks

kentcdodds commented 6 years ago

See the README where it references https://github.com/webpack-contrib/val-loader

I hope that helps.

no-more commented 6 years ago

Thanks for your response,

But sadly val-loader does not provide the same type of integration. It does not allow code to be replaced inline. It's focused on processing specific file only. preval is much more convenient and allow more possibilities thanks to the inline replacement.

kentcdodds commented 6 years ago

Sorry, I don't think you can do this without Babel