@modern-js/plugin-data-loader 0.0.0-next-20240729095103 → 0.0.0-next-20240729111625

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.
@@ -34,6 +34,9 @@ async function loader(source) {
34
34
  if (target === "webworker" || Array.isArray(target) && target.includes("webworker")) {
35
35
  return source;
36
36
  }
37
+ if (target === "async-node" || Array.isArray(target) && target.includes("async-node")) {
38
+ return source;
39
+ }
37
40
  const { resourceQuery } = this;
38
41
  const options = resourceQuery.slice(1).split("&").reduce((pre, cur) => {
39
42
  const [key, value] = cur.split("=");
@@ -27,6 +27,12 @@ function _loader() {
27
27
  source
28
28
  ];
29
29
  }
30
+ if (target === "async-node" || Array.isArray(target) && target.includes("async-node")) {
31
+ return [
32
+ 2,
33
+ source
34
+ ];
35
+ }
30
36
  resourceQuery = this.resourceQuery;
31
37
  options = resourceQuery.slice(1).split("&").reduce(function(pre, cur) {
32
38
  var _cur_split = _sliced_to_array(cur.split("="), 2), key = _cur_split[0], value = _cur_split[1];
@@ -11,6 +11,9 @@ async function loader(source) {
11
11
  if (target === "webworker" || Array.isArray(target) && target.includes("webworker")) {
12
12
  return source;
13
13
  }
14
+ if (target === "async-node" || Array.isArray(target) && target.includes("async-node")) {
15
+ return source;
16
+ }
14
17
  const { resourceQuery } = this;
15
18
  const options = resourceQuery.slice(1).split("&").reduce((pre, cur) => {
16
19
  const [key, value] = cur.split("=");
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-next-20240729095103",
18
+ "version": "0.0.0-next-20240729111625",
19
19
  "engines": {
20
20
  "node": ">=16.2.0"
21
21
  },
@@ -49,8 +49,8 @@
49
49
  "@babel/core": "^7.24.7",
50
50
  "path-to-regexp": "^6.2.0",
51
51
  "@swc/helpers": "0.5.3",
52
- "@modern-js/utils": "0.0.0-next-20240729095103",
53
- "@modern-js/runtime-utils": "0.0.0-next-20240729095103"
52
+ "@modern-js/utils": "0.0.0-next-20240729111625",
53
+ "@modern-js/runtime-utils": "0.0.0-next-20240729111625"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/babel__core": "^7.20.5",
@@ -66,11 +66,11 @@
66
66
  "webpack": "^5.93.0",
67
67
  "react": "^18",
68
68
  "react-dom": "^18",
69
- "@modern-js/core": "0.0.0-next-20240729095103",
70
- "@modern-js/server-core": "0.0.0-next-20240729095103",
71
- "@scripts/build": "0.0.0-next-20240729095103",
72
- "@scripts/jest-config": "0.0.0-next-20240729095103",
73
- "@modern-js/types": "0.0.0-next-20240729095103"
69
+ "@modern-js/server-core": "0.0.0-next-20240729111625",
70
+ "@modern-js/core": "0.0.0-next-20240729111625",
71
+ "@scripts/build": "0.0.0-next-20240729111625",
72
+ "@scripts/jest-config": "0.0.0-next-20240729111625",
73
+ "@modern-js/types": "0.0.0-next-20240729111625"
74
74
  },
75
75
  "peerDependencies": {
76
76
  "react": ">=17.0.0"