Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/charlesread/lasso-marko-bundle-issue

Shows a small bug in lasso-marko and how it bundles stuff in components
https://github.com/charlesread/lasso-marko-bundle-issue

Last synced: about 2 months ago
JSON representation

Shows a small bug in lasso-marko and how it bundles stuff in components

Awesome Lists containing this project

README

        

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](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).