Skip to content

Commit

Permalink
switched to babel-preset-env
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Franzl committed Nov 25, 2017
1 parent b81ea10 commit cbd1e65
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ gulp.task('readme', function() {
});

// for debugging only
fs.writeFileSync('README.html', converter.makeHtml(output));
//fs.writeFileSync('README.html', converter.makeHtml(output));
});


Expand All @@ -35,10 +35,11 @@ gulp.task('build', function() {
rollup_plugin_babel({
exclude: 'node_modules/**',
"presets": [
["latest", {
"es2015": {
"modules": false
}
["env", {
"targets": {
"browsers": ["> 90%"]
},
"modules": false
}],
["minify", {
"mangle": true
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sanitize-dom",
"version": "1.1.0",
"version": "2.0.0",
"description": "Recursive sanitizer/filter for WHATWG DOMs",
"main": "src/index.js",
"scripts": {
Expand Down Expand Up @@ -29,7 +29,7 @@
"devDependencies": {
"babel-core": "^6.26.0",
"babel-plugin-external-helpers": "^6.22.0",
"babel-preset-latest": "^6.24.1",
"babel-preset-env": "^1.6.1",
"babel-preset-minify": "^0.2.0",
"gulp": "^3.9.1",
"jsdoc-to-markdown": "^3.0.2",
Expand Down

0 comments on commit cbd1e65

Please sign in to comment.