Skip to content

Commit 57fd749

Browse files
Fix #8
1 parent b7655c1 commit 57fd749

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
"use strict";
22

3-
let isBrowser = new Function("try {return this===window;}catch(e){ return false;}");
3+
var isBrowser = new Function("try {return this===window;}catch(e){ return false;}");
44

5-
let useES6 = false;
5+
var useES6 = false;
66
if (!isBrowser()) {
7-
let fs = require("fs");
7+
var fs = require("fs");
88
useES6 = process.env.ES6 === 'true';
99
if (!useES6) {
10-
const CONFIG_FILE = process.cwd() + '/ioc.config';
10+
var CONFIG_FILE = process.cwd() + '/ioc.config';
1111
if (fs.existsSync(CONFIG_FILE)) {
12-
let config = JSON.parse(fs.readFileSync(CONFIG_FILE));
12+
var config = JSON.parse(fs.readFileSync(CONFIG_FILE));
1313
if (config.es6) {
1414
useES6 = true;
1515
}

0 commit comments

Comments
 (0)