Skip to content

Commit

Permalink
Merge pull request #8 from zeroturnaround/avoid_babel_polyfill
Browse files Browse the repository at this point in the history
Avoid usage of babel-polyfill
  • Loading branch information
ukupat authored Sep 20, 2016
2 parents 205c401 + 9c7088b commit 82d4bf6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
],
"plugins": [
"add-module-exports",
"transform-runtime",
"transform-class-properties",
"transform-function-bind",
"transform-object-rest-spread",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"url": "https://github.com/zeroturnaround/sql-formatter.git"
},
"dependencies": {
"babel-polyfill": "^6.9.1",
"lodash": "^4.14.0"
},
"devDependencies": {
Expand All @@ -51,6 +50,7 @@
"babel-plugin-transform-es3-property-literals": "^6.5.0",
"babel-plugin-transform-function-bind": "^6.8.0",
"babel-plugin-transform-object-rest-spread": "^6.8.0",
"babel-plugin-transform-runtime": "^6.8.0",
"babel-preset-es2015": "^6.14.0",
"check-es3-syntax-cli": "^0.1.1",
"cross-env": "^1.0.7",
Expand Down
2 changes: 1 addition & 1 deletion src/core/Indentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default class Indentation {
* @return {String}
*/
getIndent() {
return this.indent.repeat(this.indentTypes.length);
return _.repeat(this.indent, this.indentTypes.length);
}

/**
Expand Down
1 change: 0 additions & 1 deletion src/sqlFormatter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "babel-polyfill";
import N1qlFormatter from "./languages/N1qlFormatter";
import StandardSqlFormatter from "./languages/StandardSqlFormatter";

Expand Down

0 comments on commit 82d4bf6

Please sign in to comment.