@octanejs/rsbuild-plugin 0.1.28 → 0.1.30

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/README.md CHANGED
@@ -68,8 +68,12 @@ environments finish.
68
68
 
69
69
  `build.target` applies to both application transforms and Rspack's generated
70
70
  runtime. Use one ES level (`es2018`, `es2022`, and so on), `modules`, `false`, or
71
- esbuild-style browser targets such as `['chrome100', 'firefox100']`. ES levels
72
- and browser targets cannot be mixed in the same array.
71
+ browser targets such as `['chrome100', 'firefox100', 'samsung24']`. Samsung
72
+ targets use the Samsung Internet version, not its Chromium engine version; for
73
+ example, `samsung24` corresponds to Chromium 117. The `modules` baseline also
74
+ includes Samsung Internet 14, which corresponds to Chromium 87. ES levels and
75
+ browser targets cannot be mixed in the same array. Transpilation changes syntax;
76
+ applications remain responsible for any additional Web API polyfills they use.
73
77
 
74
78
  Options are declarative and cache-stable:
75
79
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/rsbuild-plugin",
3
- "version": "0.1.28",
3
+ "version": "0.1.30",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "engines": {
@@ -48,12 +48,12 @@
48
48
  }
49
49
  },
50
50
  "dependencies": {
51
- "@octanejs/app-core": "0.0.29",
52
- "@octanejs/rspack-plugin": "0.1.28"
51
+ "@octanejs/app-core": "0.0.31",
52
+ "@octanejs/rspack-plugin": "0.1.30"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "@rsbuild/core": "^2.0.0",
56
- "octane": "0.1.33"
56
+ "octane": "0.1.35"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@rsbuild/core": "^2.1.6",
@@ -63,6 +63,6 @@
63
63
  "playwright": "^1.61.1",
64
64
  "type-fest": "^5.8.0",
65
65
  "vitest": "^4.1.10",
66
- "octane": "0.1.33"
66
+ "octane": "0.1.35"
67
67
  }
68
68
  }
package/src/index.js CHANGED
@@ -67,6 +67,7 @@ const MODULE_BROWSER_TARGETS = [
67
67
  'firefox >= 78',
68
68
  'ios_saf >= 14',
69
69
  'safari >= 14',
70
+ 'samsung >= 14',
70
71
  ];
71
72
 
72
73
  /** @param {string} target */
@@ -79,12 +80,11 @@ function esTargetRank(target) {
79
80
 
80
81
  /** @param {string} target */
81
82
  function toBrowserslistTarget(target) {
82
- const match = /^(android|chrome|edge|firefox|ie|ios|opera|safari|node)(\d+(?:\.\d+)*)$/.exec(
83
- target,
84
- );
83
+ const match =
84
+ /^(android|chrome|edge|firefox|ie|ios|opera|safari|samsung|node)(\d+(?:\.\d+)*)$/.exec(target);
85
85
  if (!match) {
86
86
  throw new Error(
87
- `[@octanejs/rsbuild-plugin] Unsupported build.target ${JSON.stringify(target)}. Use an ES target, "modules", or an esbuild-style browser target such as "chrome100".`,
87
+ `[@octanejs/rsbuild-plugin] Unsupported build.target ${JSON.stringify(target)}. Use an ES target, "modules", or a browser target such as "chrome100" or "samsung24".`,
88
88
  );
89
89
  }
90
90
  const browser = match[1] === 'ios' ? 'ios_saf' : match[1];