├─┬ [email protected]
│ └── [email protected]
└── [email protected]
Create lasso-express example app:
npx @marko/create
Select lasso-express on selector.
Open server.js and add a new middleware with async.
Should works normally
Throws an babel error about generators
I try to add node12 as preset on babel config file, but then throw a new error. :-/
Also, is lasso best option to SSR? Webpack example works correctly.
https://github.com/marko-js/examples/blob/master/examples/lasso-express/babel.config.js#L2
Should probably change to:
presets: [["@babel/preset-env", { targets: { node: "current" } }]]
Could you test that out?
I'll also add that we are currently recommended using our webpack setup for new apps (see https://github.com/marko-js/examples/tree/master/examples/webpack-express) or npx @marko/create --template webpack-express
@DylanPiercey with your change it works. Thank you. I will try webpack version with more detail :)
Awesome :). I'll update the lasso examples accordingly.
Fixed!