This is a simple demonstration of what I believe to be a small bug in either lasso 2.11.8
, marko 4.2.7
, or lasso-marko 2.3.0
, but probably lasso-marko 2.3.0
.
When one attempts to have a supplementary Javascript file bundled in a marko
component, by referencing it in browser.json
, lasso
/lasso-marko
does not bundle the supplementary Javascript file unless there is a [*_]component.js
file in the component's folder.
This project uses Hapi
to serve a page rendered and bundled by marko
and lasso
, you can see the issue by:
npm install
node index.js
Then just browse to http://localhost:8000, notice that the file components/broken-component/lib.js
does not get bundled (it contains an alert
so you can tell that it's not being bundled just by visiting the page).