npm i -D coffee-redux-loader
var exportsOfFile = require("coffee-redux-loader!./file.coffee");
// => return exports of executed and compiled file.coffee
Don't forget to polyfill require
if you want to use it in node.
See webpack
documentation.
Juho Vepsäläinen |
Joshua Wiens |
Kees Kluskens |
Sean Larkin |