es-shims / es7-shim

ECMAScript 7 compatibility shims for legacy JavaScript engines
MIT License
173 stars 32 forks source link

browser.js or es7-shim.browser.js #15

Closed calvinhuang closed 8 years ago

calvinhuang commented 8 years ago

The .bower.json file specifies "es7-shim.browser.js" as the entry point, as does component.json. However, the bower package only comes with "browser.js" (which is what is specified in package.json).

So when grunt-wiredep injects the following script tag into the "bower:js" section, it results in a 404 error: <script src="bower_components/es7-shim/es7-shim.browser.js"></script>.

ljharb commented 8 years ago

I don't have a bower.json file here as there's no reason anyone should be supporting or using bower. If one exists, then someone other than I published it on bower. It should be removed.

There's a "browser" entry point in package.json, which browserify/webpack should be able to pick up when the package is properly npm-installed.

JakeChampion commented 8 years ago

https://github.com/es-shims/es7-shim/blob/master/bower.json

ljharb commented 8 years ago

hm, i didn't see it on master

ljharb commented 8 years ago

Thanks, will fix.

ljharb commented 8 years ago

Apologies for the curt initial response. I didn't recall that I had a bower.json in this repo.

It should now be fixed (for component too) but I highly discourage using bower for this or any project in 2016, or in any year where npm exists.

calvinhuang commented 8 years ago

No worries. It does feel redundant to use bower on top of npm. I'll look into how I can modify my workflow and tooling (namely, the yeoman generators that I'm accustomed to scaffolding with) to avoid using bower.