@formatjs/unplugin 1.1.5 → 1.1.6

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/transform.js +1 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@formatjs/unplugin",
3
3
  "description": "Universal build plugin for FormatJS — supports Vite, Webpack, Rollup, esbuild, and Rspack",
4
- "version": "1.1.5",
4
+ "version": "1.1.6",
5
5
  "license": "MIT",
6
6
  "author": "Long Ho <holevietlong@gmail.com>",
7
7
  "type": "module",
@@ -20,7 +20,7 @@
20
20
  "oxc-parser": "^0.120.0",
21
21
  "unplugin": "^3.0.0",
22
22
  "@formatjs/icu-messageformat-parser": "3.5.3",
23
- "@formatjs/ts-transformer": "4.4.2"
23
+ "@formatjs/ts-transformer": "4.4.3"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "@rspack/core": ">=1",
package/transform.js CHANGED
@@ -129,7 +129,7 @@ export function transform(code, id, options) {
129
129
  if (flatten && defaultMessage) {
130
130
  try {
131
131
  defaultMessage = printAST(hoistSelectors(parse(defaultMessage)));
132
- } catch (e) {}
132
+ } catch {}
133
133
  }
134
134
  // Generate ID
135
135
  let newId = existingId;