@open-xchange/vite-plugin-es-decorators 1.3.0 → 1.4.0

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 (3) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +1 -29
  3. package/package.json +3 -44
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## `1.4.0` – 2026-Apr-20
4
+
5
+ ### _PACKAGE DEPRECATED_
6
+
7
+ Use [@open-xchange/rolldown-plugin-es-decorators](https://www.npmjs.com/package/@open-xchange/rolldown-plugin-es-decorators) instead.
8
+
3
9
  ## `1.3.0` – 2026-Apr-09
4
10
 
5
11
  - chore: switch to `tsdown` for building packages
package/README.md CHANGED
@@ -1,31 +1,3 @@
1
1
  # @open-xchange/vite-plugin-es-decorators
2
2
 
3
- A Vite plugin that adds support for native ES decorators in JS and TS source files.
4
-
5
- Supports Vite 6 and 7 (with rollup/esbuild), and Vite 8 (with rolldown/oxc).
6
-
7
- ## Usage
8
-
9
- Add the plugin to your Vite configuration:
10
-
11
- ```ts
12
- // vite.config.ts
13
-
14
- import { defineConfig } from 'vite' // or 'vitest/config'
15
- import decoratorsPlugin from '@open-xchange/vite-plugin-es-decorators'
16
-
17
- export default defineConfig(() => {
18
-
19
- // ...
20
-
21
- plugins: [
22
- // ...
23
-
24
- decoratorsPlugin(),
25
- ],
26
- })
27
- ```
28
-
29
- The plugin will detect the version of Vite currently used and will configure the appropriate Babel plugin ([vite-plugin-babel](https://www.npmjs.com/package/vite-plugin-babel) for Vite 7 and less with rollup/esbuild, or [@rolldown/plugin-babel](https://www.npmjs.com/package/@rolldown/plugin-babel) for Vite 8 and up with rolldown/oxc).
30
-
31
- Vite will then send all source files to the Babel parser which will transpile ES decorators using the plugin [@babel/plugin-proposal-decorators](https://babeljs.io/docs/babel-plugin-proposal-decorators).
3
+ _Package is deprecated._ Use [@open-xchange/rolldown-plugin-es-decorators](https://www.npmjs.com/package/@open-xchange/rolldown-plugin-es-decorators) instead.
package/package.json CHANGED
@@ -1,52 +1,11 @@
1
1
  {
2
2
  "name": "@open-xchange/vite-plugin-es-decorators",
3
- "version": "1.3.0",
4
- "description": "Vite plugin that adds support for native ES decorators in JS source files",
3
+ "version": "1.4.0",
4
+ "description": "Vite plugin that adds support for native ES decorators",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://gitlab.open-xchange.com/fspd/commons/plugins.git",
8
8
  "directory": "packages/vite-plugin-es-decorators"
9
9
  },
10
- "license": "MIT",
11
- "engines": {
12
- "node": ">=20.18"
13
- },
14
- "type": "module",
15
- "exports": {
16
- ".": "./dist/index.mjs",
17
- "./package.json": "./package.json"
18
- },
19
- "files": [
20
- "dist",
21
- "CHANGELOG.*"
22
- ],
23
- "dependencies": {
24
- "@babel/core": "^7.29.0",
25
- "@babel/plugin-proposal-decorators": "^7.29.0",
26
- "@rolldown/plugin-babel": "^0.2.2",
27
- "vite-plugin-babel": "^1.6.0"
28
- },
29
- "devDependencies": {
30
- "@types/babel__core": "^7.20.5",
31
- "@vitest/coverage-v8": "^4.1.3",
32
- "vite": "^8.0.8",
33
- "vite-v6": "npm:vite@^8.0.8",
34
- "vite-v7": "npm:vite@^8.0.8",
35
- "vite-v8": "npm:vite@^8.0.8",
36
- "vitest": "^4.1.3",
37
- "@open-xchange/linter-presets": "^1.22.0",
38
- "@open-xchange/tsconfig": "^0.0.2",
39
- "@open-xchange/vitest-plugin-extended": "^1.6.0",
40
- "@open-xchange/vitest-vite-plugin-utils": "^0.0.2"
41
- },
42
- "peerDependencies": {
43
- "vite": "^8.0.0"
44
- },
45
- "scripts": {
46
- "build": "tsdown",
47
- "coverage": "vitest run --coverage",
48
- "lint": "tsc && tsc --project src && tsc --project test && eslint .",
49
- "test": "vitest run",
50
- "verify": "pnpm build && pnpm lint && pnpm test"
51
- }
10
+ "license": "MIT"
52
11
  }