@lynx-js/rspeedy-canary 0.12.3-canary-20251215-6a1a5d3d → 0.12.3-canary-20251216-e38e21a1

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.12.3-canary-20251215160846-6a1a5d3d36ba6281e5e54ef38244efc0a75ae271
3
+ ## 0.12.3-canary-20251216115050-e38e21a13bc43472da91f99f6cc60266d7e0de8b
4
4
 
5
5
  ### Patch Changes
6
6
 
7
+ - Support environment variants to enable multiple configurations for the same targets. ([#1969](https://github.com/lynx-family/lynx-stack/pull/1969))
8
+
7
9
  - Updated dependencies []:
8
- - @lynx-js/web-rsbuild-server-middleware@0.19.2-canary-20251215160846-6a1a5d3d36ba6281e5e54ef38244efc0a75ae271
10
+ - @lynx-js/web-rsbuild-server-middleware@0.19.2-canary-20251216115050-e38e21a13bc43472da91f99f6cc60266d7e0de8b
9
11
 
10
12
  ## 0.12.2
11
13
 
@@ -14,7 +14,8 @@ export const __webpack_modules__ = {
14
14
  var picocolors_default = /*#__PURE__*/ __webpack_require__.n(picocolors);
15
15
  var debug = __webpack_require__("./src/debug.ts");
16
16
  function isLynx(environment) {
17
- return 'string' == typeof environment ? 'lynx' === environment : 'lynx' === environment.name;
17
+ const environmentName = 'string' == typeof environment ? environment : environment.name;
18
+ return 'lynx' === environmentName || environmentName.startsWith('lynx-');
18
19
  }
19
20
  class ProvidePlugin_ProvidePlugin {
20
21
  definitions;
@@ -9,7 +9,8 @@ export const __webpack_modules__ = {
9
9
  });
10
10
  var getESVersionTarget = __webpack_require__("./src/utils/getESVersionTarget.ts");
11
11
  function isWeb(environment) {
12
- return 'string' == typeof environment ? 'web' === environment : 'web' === environment.name;
12
+ const environmentName = 'string' == typeof environment ? environment : environment.name;
13
+ return 'web' === environmentName || environmentName.startsWith('web-');
13
14
  }
14
15
  function pluginTarget() {
15
16
  return {
@@ -14,7 +14,8 @@ export const __webpack_modules__ = {
14
14
  var picocolors_default = /*#__PURE__*/ __webpack_require__.n(picocolors);
15
15
  var debug = __webpack_require__("./src/debug.ts");
16
16
  function isLynx(environment) {
17
- return 'string' == typeof environment ? 'lynx' === environment : 'lynx' === environment.name;
17
+ const environmentName = 'string' == typeof environment ? environment : environment.name;
18
+ return 'lynx' === environmentName || environmentName.startsWith('lynx-');
18
19
  }
19
20
  class ProvidePlugin_ProvidePlugin {
20
21
  definitions;
@@ -9,7 +9,8 @@ export const __webpack_modules__ = {
9
9
  });
10
10
  var getESVersionTarget = __webpack_require__("./src/utils/getESVersionTarget.ts");
11
11
  function isWeb(environment) {
12
- return 'string' == typeof environment ? 'web' === environment : 'web' === environment.name;
12
+ const environmentName = 'string' == typeof environment ? environment : environment.name;
13
+ return 'web' === environmentName || environmentName.startsWith('web-');
13
14
  }
14
15
  function pluginTarget() {
15
16
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/rspeedy-canary",
3
- "version": "0.12.3-canary-20251215-6a1a5d3d",
3
+ "version": "0.12.3-canary-20251216-e38e21a1",
4
4
  "description": "A webpack/rspack-based frontend toolchain for Lynx",
5
5
  "keywords": [
6
6
  "webpack",
@@ -50,7 +50,7 @@
50
50
  "dependencies": {
51
51
  "@lynx-js/cache-events-webpack-plugin": "npm:@lynx-js/cache-events-webpack-plugin-canary@0.0.2",
52
52
  "@lynx-js/chunk-loading-webpack-plugin": "npm:@lynx-js/chunk-loading-webpack-plugin-canary@0.3.3",
53
- "@lynx-js/web-rsbuild-server-middleware": "npm:@lynx-js/web-rsbuild-server-middleware-canary@0.19.2-canary-20251215-6a1a5d3d",
53
+ "@lynx-js/web-rsbuild-server-middleware": "npm:@lynx-js/web-rsbuild-server-middleware-canary@0.19.2-canary-20251216-e38e21a1",
54
54
  "@lynx-js/webpack-dev-transport": "npm:@lynx-js/webpack-dev-transport-canary@0.2.0",
55
55
  "@lynx-js/websocket": "npm:@lynx-js/websocket-canary@0.0.4",
56
56
  "@rsbuild/core": "1.6.13",