marko 5.31.2 → 5.31.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -2,12 +2,14 @@
|
|
2
2
|
load.e = exists;
|
3
3
|
module.exports = load;
|
4
4
|
|
5
|
-
function load() {
|
6
|
-
|
7
|
-
"The require API cannot be used in the browser in the current environment."
|
8
|
-
);
|
5
|
+
function load(id) {
|
6
|
+
return interopRequire(require(id));
|
9
7
|
}
|
10
8
|
|
11
9
|
function exists() {
|
12
10
|
return false;
|
11
|
+
}
|
12
|
+
|
13
|
+
function interopRequire(mod) {
|
14
|
+
return mod.default || mod;
|
13
15
|
}
|
package/package.json
CHANGED
@@ -2,12 +2,14 @@
|
|
2
2
|
load.e = exists;
|
3
3
|
module.exports = load;
|
4
4
|
|
5
|
-
function load() {
|
6
|
-
|
7
|
-
"The require API cannot be used in the browser in the current environment."
|
8
|
-
);
|
5
|
+
function load(id) {
|
6
|
+
return interopRequire(require(id));
|
9
7
|
}
|
10
8
|
|
11
9
|
function exists() {
|
12
10
|
return false;
|
13
11
|
}
|
12
|
+
|
13
|
+
function interopRequire(mod) {
|
14
|
+
return mod.default || mod;
|
15
|
+
}
|