Skip to content

Commit

Permalink
Transpile es6 features to es5 (#54)
Browse files Browse the repository at this point in the history
This should address #53
  • Loading branch information
roderickhsiao authored and redonkulus committed Jul 19, 2018
1 parent 00d0f84 commit 54e800e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
29 changes: 15 additions & 14 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,20 +115,21 @@ module.exports = function (grunt) {
[
'env',
{
targets: {
browsers: [
'last 2 Chrome versions',
'not Chrome < 60',
'last 2 Safari versions',
'not Safari < 10.1',
'last 2 iOS versions',
'not iOS < 10.3',
'last 2 Firefox versions',
'not Firefox < 54',
'last 2 Edge versions',
'not Edge < 15'
]
},
// Enable once most of the browser support es module
// targets: {
// browsers: [
// 'last 2 Chrome versions',
// 'not Chrome < 60',
// 'last 2 Safari versions',
// 'not Safari < 10.1',
// 'last 2 iOS versions',
// 'not iOS < 10.3',
// 'last 2 Firefox versions',
// 'not Firefox < 54',
// 'last 2 Edge versions',
// 'not Edge < 15'
// ]
// },
useBuiltIns: 'entry',
modules: false
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "subscribe-ui-event",
"version": "2.0.1",
"version": "2.0.2",
"description": "A single, throttle built-in solution to subscribe to browser UI Events.",
"main": "index.js",
"module": "index.es.js",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3714,7 +3714,7 @@ lodash@^3.2.0:
version "3.10.1"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6"

lodash@^4.0.0, lodash@^4.13.1, lodash@^4.14.0, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.3.0, lodash@^4.7.0, lodash@~4.17.4, lodash@~4.17.5:
lodash@^4.0.0, lodash@^4.13.1, lodash@^4.14.0, lodash@^4.17.10, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.3.0, lodash@^4.7.0, lodash@~4.17.4, lodash@~4.17.5:
version "4.17.10"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7"

Expand Down

0 comments on commit 54e800e

Please sign in to comment.