@lynx-js/rspeedy-canary 0.11.4-canary-20250925-909a8425 → 0.11.4-canary-20250925-df40a0a6

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/CHANGELOG.md CHANGED
@@ -1,11 +1,13 @@
1
1
  # @lynx-js/rspeedy
2
2
 
3
- ## 0.11.4-canary-20250925120232-909a84257806d9fa0d22ba96c597c3d35e612bd0
3
+ ## 0.11.4-canary-20250925124327-df40a0a6f4020533f30a01b09241b9bd64939ad4
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Bump Rsbuild v1.5.12 with Rspack v1.5.7. ([#1708](https://github.com/lynx-family/lynx-stack/pull/1708))
8
8
 
9
+ - Fix the "lynx.getJSModule is not a function" error on Web platform ([#1830](https://github.com/lynx-family/lynx-stack/pull/1830))
10
+
9
11
  - Support `server.compress` ([#1799](https://github.com/lynx-family/lynx-stack/pull/1799))
10
12
 
11
13
  - Support `server.cors` ([#1808](https://github.com/lynx-family/lynx-stack/pull/1808))
@@ -13,6 +13,9 @@ export const __webpack_modules__ = {
13
13
  var picocolors = __webpack_require__("../../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
14
14
  var picocolors_default = /*#__PURE__*/ __webpack_require__.n(picocolors);
15
15
  var debug = __webpack_require__("./src/debug.ts");
16
+ function isLynx(environment) {
17
+ return 'string' == typeof environment ? 'lynx' === environment : 'lynx' === environment.name;
18
+ }
16
19
  class ProvidePlugin_ProvidePlugin {
17
20
  definitions;
18
21
  constructor(definitions){
@@ -95,12 +98,8 @@ export const __webpack_modules__ = {
95
98
  paths: [
96
99
  rsbuildPath
97
100
  ]
98
- })).end().end().plugin('lynx.hmr.provide').use(ProvidePlugin_ProvidePlugin, [
101
+ })).end().end().plugin('lynx.hmr.provide.dev_server_client').use(ProvidePlugin_ProvidePlugin, [
99
102
  {
100
- WebSocket: [
101
- options?.client?.websocketTransport ?? require.resolve('@lynx-js/websocket'),
102
- 'default'
103
- ],
104
103
  __webpack_dev_server_client__: [
105
104
  require.resolve('./client/hmr/WebSocketClient.js', {
106
105
  paths: [
@@ -111,6 +110,14 @@ export const __webpack_modules__ = {
111
110
  ]
112
111
  }
113
112
  ]).end();
113
+ if (isLynx(environment)) chain.plugin('lynx.hmr.provide.websocket').use(ProvidePlugin_ProvidePlugin, [
114
+ {
115
+ WebSocket: [
116
+ options?.client?.websocketTransport ?? require.resolve('@lynx-js/websocket'),
117
+ 'default'
118
+ ]
119
+ }
120
+ ]).end();
114
121
  });
115
122
  }
116
123
  };
@@ -13,6 +13,9 @@ export const __webpack_modules__ = {
13
13
  var picocolors = __webpack_require__("../../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
14
14
  var picocolors_default = /*#__PURE__*/ __webpack_require__.n(picocolors);
15
15
  var debug = __webpack_require__("./src/debug.ts");
16
+ function isLynx(environment) {
17
+ return 'string' == typeof environment ? 'lynx' === environment : 'lynx' === environment.name;
18
+ }
16
19
  class ProvidePlugin_ProvidePlugin {
17
20
  definitions;
18
21
  constructor(definitions){
@@ -95,12 +98,8 @@ export const __webpack_modules__ = {
95
98
  paths: [
96
99
  rsbuildPath
97
100
  ]
98
- })).end().end().plugin('lynx.hmr.provide').use(ProvidePlugin_ProvidePlugin, [
101
+ })).end().end().plugin('lynx.hmr.provide.dev_server_client').use(ProvidePlugin_ProvidePlugin, [
99
102
  {
100
- WebSocket: [
101
- options?.client?.websocketTransport ?? require.resolve('@lynx-js/websocket'),
102
- 'default'
103
- ],
104
103
  __webpack_dev_server_client__: [
105
104
  require.resolve('./client/hmr/WebSocketClient.js', {
106
105
  paths: [
@@ -111,6 +110,14 @@ export const __webpack_modules__ = {
111
110
  ]
112
111
  }
113
112
  ]).end();
113
+ if (isLynx(environment)) chain.plugin('lynx.hmr.provide.websocket').use(ProvidePlugin_ProvidePlugin, [
114
+ {
115
+ WebSocket: [
116
+ options?.client?.websocketTransport ?? require.resolve('@lynx-js/websocket'),
117
+ 'default'
118
+ ]
119
+ }
120
+ ]).end();
114
121
  });
115
122
  }
116
123
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/rspeedy-canary",
3
- "version": "0.11.4-canary-20250925-909a8425",
3
+ "version": "0.11.4-canary-20250925-df40a0a6",
4
4
  "description": "A webpack/rspack-based frontend toolchain for Lynx",
5
5
  "keywords": [
6
6
  "webpack",