Skip to content

Commit 82d4bf6

Browse files
authored
Merge pull request #8 from zeroturnaround/avoid_babel_polyfill
Avoid usage of babel-polyfill
2 parents 205c401 + 9c7088b commit 82d4bf6

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

.babelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
],
55
"plugins": [
66
"add-module-exports",
7+
"transform-runtime",
78
"transform-class-properties",
89
"transform-function-bind",
910
"transform-object-rest-spread",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
"url": "https://github.com/zeroturnaround/sql-formatter.git"
3737
},
3838
"dependencies": {
39-
"babel-polyfill": "^6.9.1",
4039
"lodash": "^4.14.0"
4140
},
4241
"devDependencies": {
@@ -51,6 +50,7 @@
5150
"babel-plugin-transform-es3-property-literals": "^6.5.0",
5251
"babel-plugin-transform-function-bind": "^6.8.0",
5352
"babel-plugin-transform-object-rest-spread": "^6.8.0",
53+
"babel-plugin-transform-runtime": "^6.8.0",
5454
"babel-preset-es2015": "^6.14.0",
5555
"check-es3-syntax-cli": "^0.1.1",
5656
"cross-env": "^1.0.7",

src/core/Indentation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default class Indentation {
2525
* @return {String}
2626
*/
2727
getIndent() {
28-
return this.indent.repeat(this.indentTypes.length);
28+
return _.repeat(this.indent, this.indentTypes.length);
2929
}
3030

3131
/**

src/sqlFormatter.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import "babel-polyfill";
21
import N1qlFormatter from "./languages/N1qlFormatter";
32
import StandardSqlFormatter from "./languages/StandardSqlFormatter";
43

0 commit comments

Comments
 (0)