Skip to content

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

Notifications You must be signed in to change notification settings

charlesread/lasso-marko-bundle-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published