Skip to content

Commit

Permalink
es6 import syntax for babel polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
Maya Man committed Oct 2, 2018
1 parent 2b772b7 commit 3d3bbd1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 20 deletions.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

require("babel-polyfill");
import "@babel/polyfill";
import * as mobilenetModule from '@tensorflow-models/mobilenet';
import * as tf from '@tensorflow/tfjs';
import * as knnClassifier from '@tensorflow-models/knn-classifier';
Expand Down
27 changes: 10 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"version": "0.1.0",
"license": "",
"dependencies": {
"@babel/polyfill": "^7.0.0",
"@tensorflow-models/knn-classifier": "^0.2.2",
"@tensorflow-models/mobilenet": "^0.2.2",
"@tensorflow/tfjs": "^0.13.0",
"babel-polyfill": "^6.0.16"
"@tensorflow/tfjs": "^0.13.0"
},
"scripts": {
"start": "budo main.js:dist/build.js --live --host localhost",
Expand Down

0 comments on commit 3d3bbd1

Please sign in to comment.