We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7655c1 commit 57fd749Copy full SHA for 57fd749
index.js
@@ -1,15 +1,15 @@
1
"use strict";
2
3
-let isBrowser = new Function("try {return this===window;}catch(e){ return false;}");
+var isBrowser = new Function("try {return this===window;}catch(e){ return false;}");
4
5
-let useES6 = false;
+var useES6 = false;
6
if (!isBrowser()) {
7
- let fs = require("fs");
+ var fs = require("fs");
8
useES6 = process.env.ES6 === 'true';
9
if (!useES6) {
10
- const CONFIG_FILE = process.cwd() + '/ioc.config';
+ var CONFIG_FILE = process.cwd() + '/ioc.config';
11
if (fs.existsSync(CONFIG_FILE)) {
12
- let config = JSON.parse(fs.readFileSync(CONFIG_FILE));
+ var config = JSON.parse(fs.readFileSync(CONFIG_FILE));
13
if (config.es6) {
14
useES6 = true;
15
}
0 commit comments