update babel config to target newer browsers, work around parcel bug #60
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This does a few things.
It changes the build target for all the examples to support the following newer browsers currently,
The exception to this is
getting_started
, which still doesn't use a build tool, andwebcam-transfer-learning
. The reason for the latter is because that demo is featured on our front page it is more likely to be viewed by non-developers, who may have older browsers.Targetting newer browsers makes the stack traces easier to parse as mentioned in tensorflow/tfjs#60
The other thing this PR does is workaround a bug in parcel that was often causing an error to happen in the dev server and require a restart of yarn. Moving to .babelrc files should fix the problem and allow for much smoother development.
I also updated the readme to spell out the dependencies needed, which should close tensorflow/tfjs#57
This one might be nice for people to try out locally.
This change is