lasso-js / lasso

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

if-flag is ignored in async section of browser.json #149

Closed mikewoo200 closed 8 years ago

mikewoo200 commented 8 years ago

if-flag is ignored in the async section. The file is downloaded to browser regardless of whether the lasso flag is passed in or not. In the following example, ./myFile.js is always loaded, with or without someFlag

...
"async": {
  "some-module/lazy": [
    {
      "if-flag": "someFlag",
      "dependencies": [
        "./myFile.js"
      ]
    },
    ...
patrick-steele-idem commented 8 years ago

Thanks for reporting the problem.

New versions published with fix:

Please let me know if you see any other issues.