Bounties-Network / BountiesFactory

A front-end explorer for the StandardBounty contracts
MIT License
19 stars 12 forks source link

Work in progress for ES5 on the moksha branch #18

Open codeluggage opened 6 years ago

codeluggage commented 6 years ago

The purpose of this branch is to re-enable ES5 for the webpack build. As the npm run build runs, the exclude pattern is echoed, as well as the inclusion pattern.

I've been running it with and without this inclusion pattern, and have been working through to look for issues It is still not building proper ES5 though. It became apparent that ipfs-mini was creating problems, and it has been commented out from the inclusion list.

Some valuable links:

To get set up with the check against ES5, install this:

npm i es-check -g

Then check out this branch and install the new exclusion checker:

git checkout moksha-es5
npm i

Then, run this to check if the build has produced proper ES5:

npm run build && es-check es5 ./build/*.js