marko-js-archive / marko-loader

DEPRECATED: see https://github.com/marko-js/webpack
MIT License
10 stars 12 forks source link

Node target #7

Closed DylanPiercey closed 7 years ago

DylanPiercey commented 7 years ago

Currently it looks like this loader only creates templates compiled for the browser. Because of this it is difficult to build isomorphic bundles (one for the browser and one for the server) using Marko and webpack.

It would be nice if this was configurable through the webpack options for the loader, or better yet it could automatically pickup on the webpack target for node and node-async.

I think this works fine if you manually specify the target: "server" option though.

DylanPiercey commented 7 years ago

Closing this since it was possible through options :).