@remyyy/vite-plugin-velox 0.0.10 → 0.0.11
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/LICENSE +21 -21
- package/README.md +28 -28
- package/dist/index.js +10 -4
- package/dist/index.mjs +10 -4
- package/package.json +46 -46
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 TheRemyyy
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 TheRemyyy
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
# @remyyy/vite-plugin-velox
|
|
2
|
-
|
|
3
|
-
**Vite integration for the Velox Framework**
|
|
4
|
-
|
|
5
|
-
Enables JSX compilation and HMR for Velox applications.
|
|
6
|
-
|
|
7
|
-
## Installation
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
npm install -D @remyyy/vite-plugin-velox
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Usage
|
|
14
|
-
|
|
15
|
-
Add it to your `vite.config.ts`:
|
|
16
|
-
|
|
17
|
-
```ts
|
|
18
|
-
import { defineConfig } from 'vite';
|
|
19
|
-
import velox from '@remyyy/vite-plugin-velox';
|
|
20
|
-
|
|
21
|
-
export default defineConfig({
|
|
22
|
-
plugins: [velox()]
|
|
23
|
-
});
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
## Documentation
|
|
27
|
-
|
|
28
|
-
For full documentation, visit the [main repository](https://github.com/TheRemyyy/velox-framework).
|
|
1
|
+
# @remyyy/vite-plugin-velox
|
|
2
|
+
|
|
3
|
+
**Vite integration for the Velox Framework**
|
|
4
|
+
|
|
5
|
+
Enables JSX compilation and HMR for Velox applications.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install -D @remyyy/vite-plugin-velox
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
Add it to your `vite.config.ts`:
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import { defineConfig } from 'vite';
|
|
19
|
+
import velox from '@remyyy/vite-plugin-velox';
|
|
20
|
+
|
|
21
|
+
export default defineConfig({
|
|
22
|
+
plugins: [velox()]
|
|
23
|
+
});
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Documentation
|
|
27
|
+
|
|
28
|
+
For full documentation, visit the [main repository](https://github.com/TheRemyyy/velox-framework).
|
package/dist/index.js
CHANGED
|
@@ -26,11 +26,17 @@ module.exports = __toCommonJS(index_exports);
|
|
|
26
26
|
function velox() {
|
|
27
27
|
return {
|
|
28
28
|
name: "vite-plugin-velox",
|
|
29
|
-
config() {
|
|
29
|
+
config(config) {
|
|
30
|
+
const existingOxc = config.oxc && typeof config.oxc === "object" ? config.oxc : void 0;
|
|
31
|
+
const existingOxcJsx = existingOxc?.jsx && typeof existingOxc.jsx === "object" ? existingOxc.jsx : void 0;
|
|
30
32
|
return {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
oxc: {
|
|
34
|
+
...existingOxc,
|
|
35
|
+
jsx: {
|
|
36
|
+
...existingOxcJsx,
|
|
37
|
+
runtime: "automatic",
|
|
38
|
+
importSource: "@remyyy/velox"
|
|
39
|
+
}
|
|
34
40
|
}
|
|
35
41
|
};
|
|
36
42
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -2,11 +2,17 @@
|
|
|
2
2
|
function velox() {
|
|
3
3
|
return {
|
|
4
4
|
name: "vite-plugin-velox",
|
|
5
|
-
config() {
|
|
5
|
+
config(config) {
|
|
6
|
+
const existingOxc = config.oxc && typeof config.oxc === "object" ? config.oxc : void 0;
|
|
7
|
+
const existingOxcJsx = existingOxc?.jsx && typeof existingOxc.jsx === "object" ? existingOxc.jsx : void 0;
|
|
6
8
|
return {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
oxc: {
|
|
10
|
+
...existingOxc,
|
|
11
|
+
jsx: {
|
|
12
|
+
...existingOxcJsx,
|
|
13
|
+
runtime: "automatic",
|
|
14
|
+
importSource: "@remyyy/velox"
|
|
15
|
+
}
|
|
10
16
|
}
|
|
11
17
|
};
|
|
12
18
|
}
|
package/package.json
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@remyyy/vite-plugin-velox",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"author": "TheRemyyy",
|
|
5
|
-
"repository": {
|
|
6
|
-
"type": "git",
|
|
7
|
-
"url": "https://github.com/TheRemyyy/velox-framework.git",
|
|
8
|
-
"directory": "packages/vite-plugin-velox"
|
|
9
|
-
},
|
|
10
|
-
"keywords": [
|
|
11
|
-
"vite",
|
|
12
|
-
"plugin",
|
|
13
|
-
"velox",
|
|
14
|
-
"framework"
|
|
15
|
-
],
|
|
16
|
-
"license": "MIT",
|
|
17
|
-
"publishConfig": {
|
|
18
|
-
"access": "public"
|
|
19
|
-
},
|
|
20
|
-
"main": "./dist/index.js",
|
|
21
|
-
"module": "./dist/index.mjs",
|
|
22
|
-
"types": "./dist/index.d.ts",
|
|
23
|
-
"exports": {
|
|
24
|
-
".": {
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"files": [
|
|
31
|
-
"dist",
|
|
32
|
-
"README.md"
|
|
33
|
-
],
|
|
34
|
-
"scripts": {
|
|
35
|
-
"build": "tsup src/index.ts --format cjs,esm --dts",
|
|
36
|
-
"dev": "tsup src/index.ts --format cjs,esm --dts --watch"
|
|
37
|
-
},
|
|
38
|
-
"peerDependencies": {
|
|
39
|
-
"vite": "^6.0.0"
|
|
40
|
-
},
|
|
41
|
-
"devDependencies": {
|
|
42
|
-
"tsup": "^8.
|
|
43
|
-
"typescript": "^5.
|
|
44
|
-
"vite": "^
|
|
45
|
-
}
|
|
46
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@remyyy/vite-plugin-velox",
|
|
3
|
+
"version": "0.0.11",
|
|
4
|
+
"author": "TheRemyyy",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/TheRemyyy/velox-framework.git",
|
|
8
|
+
"directory": "packages/vite-plugin-velox"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"vite",
|
|
12
|
+
"plugin",
|
|
13
|
+
"velox",
|
|
14
|
+
"framework"
|
|
15
|
+
],
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public"
|
|
19
|
+
},
|
|
20
|
+
"main": "./dist/index.js",
|
|
21
|
+
"module": "./dist/index.mjs",
|
|
22
|
+
"types": "./dist/index.d.ts",
|
|
23
|
+
"exports": {
|
|
24
|
+
".": {
|
|
25
|
+
"types": "./dist/index.d.ts",
|
|
26
|
+
"import": "./dist/index.mjs",
|
|
27
|
+
"require": "./dist/index.js"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"dist",
|
|
32
|
+
"README.md"
|
|
33
|
+
],
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "tsup src/index.ts --format cjs,esm --dts",
|
|
36
|
+
"dev": "tsup src/index.ts --format cjs,esm --dts --watch"
|
|
37
|
+
},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"vite": "^6.0.0 || ^7.0.0 || ^8.0.0"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"tsup": "^8.5.1",
|
|
43
|
+
"typescript": "^5.9.3",
|
|
44
|
+
"vite": "^8.0.8"
|
|
45
|
+
}
|
|
46
|
+
}
|