aboutsummaryrefslogtreecommitdiff
path: root/node_modules/webpack/buildin
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/webpack/buildin')
-rw-r--r--node_modules/webpack/buildin/.eslintrc7
-rw-r--r--node_modules/webpack/buildin/amd-define.js6
-rw-r--r--node_modules/webpack/buildin/amd-options.js4
-rw-r--r--node_modules/webpack/buildin/global.js41
-rw-r--r--node_modules/webpack/buildin/harmony-module.js48
-rw-r--r--node_modules/webpack/buildin/module.js44
-rw-r--r--node_modules/webpack/buildin/system.js14
7 files changed, 78 insertions, 86 deletions
diff --git a/node_modules/webpack/buildin/.eslintrc b/node_modules/webpack/buildin/.eslintrc
deleted file mode 100644
index 7638d61e6..000000000
--- a/node_modules/webpack/buildin/.eslintrc
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "env": {
- "node": true,
- "es6": false,
- "browser": true
- }
-}
diff --git a/node_modules/webpack/buildin/amd-define.js b/node_modules/webpack/buildin/amd-define.js
index 006df1756..0d32606a1 100644
--- a/node_modules/webpack/buildin/amd-define.js
+++ b/node_modules/webpack/buildin/amd-define.js
@@ -1,3 +1,3 @@
-module.exports = function() {
- throw new Error("define cannot be used indirect");
-};
+module.exports = function() {
+ throw new Error("define cannot be used indirect");
+};
diff --git a/node_modules/webpack/buildin/amd-options.js b/node_modules/webpack/buildin/amd-options.js
index 72600c4d2..f7dd47533 100644
--- a/node_modules/webpack/buildin/amd-options.js
+++ b/node_modules/webpack/buildin/amd-options.js
@@ -1,2 +1,2 @@
-/* globals __webpack_amd_options__ */
-module.exports = __webpack_amd_options__;
+/* globals __webpack_amd_options__ */
+module.exports = __webpack_amd_options__;
diff --git a/node_modules/webpack/buildin/global.js b/node_modules/webpack/buildin/global.js
index b025ee7f6..35f3144e9 100644
--- a/node_modules/webpack/buildin/global.js
+++ b/node_modules/webpack/buildin/global.js
@@ -1,21 +1,20 @@
-var g;
-
-// This works in non-strict mode
-g = (function() {
- return this;
-})();
-
-try {
- // This works if eval is allowed (see CSP)
- g = g || Function("return this")() || (1,eval)("this");
-} catch(e) {
- // This works if the window reference is available
- if(typeof window === "object")
- g = window;
-}
-
-// g can still be undefined, but nothing to do about it...
-// We return undefined, instead of nothing here, so it's
-// easier to handle this case. if(!global) { ...}
-
-module.exports = g;
+var g;
+
+// This works in non-strict mode
+g = (function() {
+ return this;
+})();
+
+try {
+ // This works if eval is allowed (see CSP)
+ g = g || Function("return this")() || (1, eval)("this");
+} catch (e) {
+ // This works if the window reference is available
+ if (typeof window === "object") g = window;
+}
+
+// g can still be undefined, but nothing to do about it...
+// We return undefined, instead of nothing here, so it's
+// easier to handle this case. if(!global) { ...}
+
+module.exports = g;
diff --git a/node_modules/webpack/buildin/harmony-module.js b/node_modules/webpack/buildin/harmony-module.js
index 0a3c5d175..c16146586 100644
--- a/node_modules/webpack/buildin/harmony-module.js
+++ b/node_modules/webpack/buildin/harmony-module.js
@@ -1,24 +1,24 @@
-module.exports = function(originalModule) {
- if(!originalModule.webpackPolyfill) {
- var module = Object.create(originalModule);
- // module.parent = undefined by default
- if(!module.children) module.children = [];
- Object.defineProperty(module, "loaded", {
- enumerable: true,
- get: function() {
- return module.l;
- }
- });
- Object.defineProperty(module, "id", {
- enumerable: true,
- get: function() {
- return module.i;
- }
- });
- Object.defineProperty(module, "exports", {
- enumerable: true,
- });
- module.webpackPolyfill = 1;
- }
- return module;
-};
+module.exports = function(originalModule) {
+ if (!originalModule.webpackPolyfill) {
+ var module = Object.create(originalModule);
+ // module.parent = undefined by default
+ if (!module.children) module.children = [];
+ Object.defineProperty(module, "loaded", {
+ enumerable: true,
+ get: function() {
+ return module.l;
+ }
+ });
+ Object.defineProperty(module, "id", {
+ enumerable: true,
+ get: function() {
+ return module.i;
+ }
+ });
+ Object.defineProperty(module, "exports", {
+ enumerable: true
+ });
+ module.webpackPolyfill = 1;
+ }
+ return module;
+};
diff --git a/node_modules/webpack/buildin/module.js b/node_modules/webpack/buildin/module.js
index 52f02a735..c92808b60 100644
--- a/node_modules/webpack/buildin/module.js
+++ b/node_modules/webpack/buildin/module.js
@@ -1,22 +1,22 @@
-module.exports = function(module) {
- if(!module.webpackPolyfill) {
- module.deprecate = function() {};
- module.paths = [];
- // module.parent = undefined by default
- if(!module.children) module.children = [];
- Object.defineProperty(module, "loaded", {
- enumerable: true,
- get: function() {
- return module.l;
- }
- });
- Object.defineProperty(module, "id", {
- enumerable: true,
- get: function() {
- return module.i;
- }
- });
- module.webpackPolyfill = 1;
- }
- return module;
-};
+module.exports = function(module) {
+ if (!module.webpackPolyfill) {
+ module.deprecate = function() {};
+ module.paths = [];
+ // module.parent = undefined by default
+ if (!module.children) module.children = [];
+ Object.defineProperty(module, "loaded", {
+ enumerable: true,
+ get: function() {
+ return module.l;
+ }
+ });
+ Object.defineProperty(module, "id", {
+ enumerable: true,
+ get: function() {
+ return module.i;
+ }
+ });
+ module.webpackPolyfill = 1;
+ }
+ return module;
+};
diff --git a/node_modules/webpack/buildin/system.js b/node_modules/webpack/buildin/system.js
index 8dac967a2..9ba70a384 100644
--- a/node_modules/webpack/buildin/system.js
+++ b/node_modules/webpack/buildin/system.js
@@ -1,7 +1,7 @@
-// Provide a "System" global.
-module.exports = {
- // Make sure import is only used as "System.import"
- import: function() {
- throw new Error("System.import cannot be used indirectly");
- }
-};
+// Provide a "System" global.
+module.exports = {
+ // Make sure import is only used as "System.import"
+ import: function() {
+ throw new Error("System.import cannot be used indirectly");
+ }
+};