I've very confused about the option target=server for Marko-loader. For a server side build, wouldn't using Webpacks target of node make more sense as to the intention of building for server-side?
If the desire is to leave this option as is, it should really be documented that you need to set it on the loader options. The only way to discover this currently is to go through the code after webpack blows up about trying to use VDOM on the server.
If you would like to change it, I'm more than happy to submit a PR.
I've very confused about the option
target=server
for Marko-loader. For a server side build, wouldn't using Webpacks target ofnode
make more sense as to the intention of building for server-side?If the desire is to leave this option as is, it should really be documented that you need to set it on the loader options. The only way to discover this currently is to go through the code after webpack blows up about trying to use VDOM on the server.
If you would like to change it, I'm more than happy to submit a PR.