marko 5.31.2 → 5.31.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -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
|
+
}
|