lasso-js / lasso

Advanced JavaScript module bundler, asset pipeline and optimizer
582 stars 75 forks source link

Exclude libraries from bundling #246

Open sirceljm opened 6 years ago

sirceljm commented 6 years ago

Hi,

The problem that I have is that I want to bundle my marko components with lasso. I would like to use 'aws-sdk' in one of those components on server side. The problem is that lasso wants to use it when bundling and it complains that 'fs' module is not found. Is there a way to tell lasso to exclude node certain packages.

There was already a similar issue (https://github.com/lasso-js/lasso/issues/58) before but I don't know if there was a solution implemented.

Best regards

Matej