From 198d986e8a9e15b068310a1604e7da0e1d12b88a Mon Sep 17 00:00:00 2001 From: Pascal Duez Date: Fri, 13 Feb 2015 10:52:24 +0100 Subject: [PATCH] Remove 6to5 runtime dependence - Since we don't use ES6 features requiring polyfills, the default compilation is enough. - Add `es6-promise` for Promises support --- Makefile | 2 +- package.json | 2 +- src/index.js | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 49a5500..da31173 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ dist: $(DIST) dist/%.js: src/%.js mkdir -p $(@D) - 6to5 --optional selfContained $< -o $@ + 6to5 $< -o $@ min: assets/js/main.min.js diff --git a/package.json b/package.json index 8861daf..bbdd3ca 100644 --- a/package.json +++ b/package.json @@ -22,9 +22,9 @@ ], "main": "dist", "dependencies": { - "6to5-runtime": "^3.2.1", "chroma-js": "^0.6.3", "es6-denodeify": "^0.1.0", + "es6-promise": "^2.0.1", "extend": "^2.0.0", "fs-extra": "^0.16.3", "html-minifier": "^0.7.0", diff --git a/src/index.js b/src/index.js index c73377a..66683fc 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,6 @@ import chroma from 'chroma-js'; import def from '../default'; +import { Promise } from 'es6-promise'; import denodeify from 'es6-denodeify'; import extend from 'extend'; import fs from 'fs';