@framework-m/vite-plugin 0.3.3 → 0.3.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.
- package/README.md +39 -0
- package/package.json +6 -6
package/README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# @framework-m/vite-plugin
|
|
2
|
+
|
|
3
|
+
Vite plugin for Framework M plugin auto-discovery and bundling.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @framework-m/vite-plugin
|
|
9
|
+
|
|
10
|
+
# With pnpm
|
|
11
|
+
pnpm add @framework-m/vite-plugin
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Features
|
|
15
|
+
|
|
16
|
+
- **Auto-Discovery**: Automatically scan and register Framework M plugins in your workspace.
|
|
17
|
+
- **Module Federation**: Built-in support for ESM-based module federation.
|
|
18
|
+
- **Development Proxy**: Seamless integration with the Framework M backend for development.
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
Add the plugin to your `vite.config.ts`:
|
|
23
|
+
|
|
24
|
+
```ts
|
|
25
|
+
import { defineConfig } from "vite";
|
|
26
|
+
import { frameworkMPlugin } from "@framework-m/vite-plugin";
|
|
27
|
+
|
|
28
|
+
export default defineConfig({
|
|
29
|
+
plugins: [
|
|
30
|
+
frameworkMPlugin({
|
|
31
|
+
// Configuration options
|
|
32
|
+
}),
|
|
33
|
+
],
|
|
34
|
+
});
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## License
|
|
38
|
+
|
|
39
|
+
Apache-2.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@framework-m/vite-plugin",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"description": "Vite plugin for Framework M plugin auto-discovery and bundling",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -33,18 +33,18 @@
|
|
|
33
33
|
"vite": "^5.0.0 || ^6.0.0"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@framework-m/plugin-sdk": "^0.
|
|
36
|
+
"@framework-m/plugin-sdk": "^0.2.5",
|
|
37
37
|
"@originjs/vite-plugin-federation": "^1.4.1",
|
|
38
38
|
"fast-glob": "^3.3.3",
|
|
39
|
-
"glob": "^10.
|
|
40
|
-
"vite": "^6.
|
|
39
|
+
"glob": "^10.5.0",
|
|
40
|
+
"vite": "^6.4.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/node": "^22.19.15",
|
|
44
44
|
"typescript": "^5.9.3",
|
|
45
45
|
"vite": "^6.4.1",
|
|
46
|
-
"vite-plugin-dts": "^4.5.
|
|
47
|
-
"vitest": "^4.1.
|
|
46
|
+
"vite-plugin-dts": "^4.5.4",
|
|
47
|
+
"vitest": "^4.1.1"
|
|
48
48
|
},
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public"
|