marko 5.31.2 → 5.31.4
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
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "marko",
|
3
|
-
"version": "5.31.
|
3
|
+
"version": "5.31.4",
|
4
4
|
"description": "UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.",
|
5
5
|
"keywords": [
|
6
6
|
"front-end",
|
@@ -64,8 +64,8 @@
|
|
64
64
|
"build": "babel ./src --out-dir ./dist --delete-dir-on-start --copy-files --config-file ../../babel.config.js --env-name=production"
|
65
65
|
},
|
66
66
|
"dependencies": {
|
67
|
-
"@marko/compiler": "^5.33.
|
68
|
-
"@marko/translator-default": "^5.31.
|
67
|
+
"@marko/compiler": "^5.33.1",
|
68
|
+
"@marko/translator-default": "^5.31.1",
|
69
69
|
"app-module-path": "^2.2.0",
|
70
70
|
"argly": "^1.2.0",
|
71
71
|
"browser-refresh-client": "1.1.4",
|
@@ -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
|
+
}
|