@modern-js/plugin-data-loader 2.39.1 → 2.40.0
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.
package/dist/cjs/cli/loader.js
CHANGED
|
@@ -49,6 +49,7 @@ async function loader(source) {
|
|
|
49
49
|
const readFile = (0, import_util.promisify)(this.fs.readFile);
|
|
50
50
|
try {
|
|
51
51
|
const clientDataPath = this.resourcePath.includes(".loader.") ? this.resourcePath.replace(".loader.", ".data.client.") : this.resourcePath.replace(".data.", ".data.client.");
|
|
52
|
+
this.addDependency(clientDataPath);
|
|
52
53
|
const clientDataContent = await readFile(clientDataPath);
|
|
53
54
|
return clientDataContent;
|
|
54
55
|
} catch (error) {
|
package/dist/esm/cli/loader.js
CHANGED
|
@@ -56,6 +56,7 @@ function _loader() {
|
|
|
56
56
|
4
|
|
57
57
|
]);
|
|
58
58
|
clientDataPath = this.resourcePath.includes(".loader.") ? this.resourcePath.replace(".loader.", ".data.client.") : this.resourcePath.replace(".data.", ".data.client.");
|
|
59
|
+
this.addDependency(clientDataPath);
|
|
59
60
|
return [
|
|
60
61
|
4,
|
|
61
62
|
readFile(clientDataPath)
|
|
@@ -26,6 +26,7 @@ async function loader(source) {
|
|
|
26
26
|
const readFile = promisify(this.fs.readFile);
|
|
27
27
|
try {
|
|
28
28
|
const clientDataPath = this.resourcePath.includes(".loader.") ? this.resourcePath.replace(".loader.", ".data.client.") : this.resourcePath.replace(".data.", ".data.client.");
|
|
29
|
+
this.addDependency(clientDataPath);
|
|
29
30
|
const clientDataContent = await readFile(clientDataPath);
|
|
30
31
|
return clientDataContent;
|
|
31
32
|
} catch (error) {
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.40.0",
|
|
19
19
|
"engines": {
|
|
20
20
|
"node": ">=14.17.6"
|
|
21
21
|
},
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"@remix-run/node": "^1.12.0",
|
|
59
59
|
"path-to-regexp": "^6.2.0",
|
|
60
60
|
"@swc/helpers": "0.5.1",
|
|
61
|
-
"@modern-js/utils": "2.
|
|
62
|
-
"@modern-js/runtime-utils": "2.
|
|
61
|
+
"@modern-js/utils": "2.40.0",
|
|
62
|
+
"@modern-js/runtime-utils": "2.40.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@types/babel__core": "^7.20.0",
|
|
@@ -75,11 +75,11 @@
|
|
|
75
75
|
"webpack": "^5.88.1",
|
|
76
76
|
"react": "^18",
|
|
77
77
|
"react-dom": "^18",
|
|
78
|
-
"@modern-js/
|
|
79
|
-
"@modern-js/
|
|
80
|
-
"@modern-js/
|
|
81
|
-
"@scripts/build": "2.
|
|
82
|
-
"@scripts/jest-config": "2.
|
|
78
|
+
"@modern-js/core": "2.40.0",
|
|
79
|
+
"@modern-js/server-core": "2.40.0",
|
|
80
|
+
"@modern-js/types": "2.40.0",
|
|
81
|
+
"@scripts/build": "2.40.0",
|
|
82
|
+
"@scripts/jest-config": "2.40.0"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
85
|
"react": ">=17.0.0"
|