This guide was written a while ago by someone who is neither a webpack or lasso expert. Information here may be incorrect or outdated. If you know/figure out a better way to solve some of these migration problems feel free to leave a comment
This is a guide for migrating a marko project from lasso to webpack. This was created for migrating an express app that directly requires .marko files to render on the server, and thus makes use of a multi-compiler setup to handle .marko file resolution. Your mileage may vary.
Before migrating from lasso to webpack the first thing to realize is that with webpack, everything is intended to be a module, even client-side js. You probably shouldn't write code that assumes the existence of global variables unless they are browser globals OR loaded via a script tag somewhere AND you can guarantee they will load BEFORE they are used.
These are the packages that will be used in the webpack configuration below.