@dcoder-x/vite 0.1.7 → 0.1.9
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/dist/ClippyVitePlugin.js +3 -0
- package/package.json +2 -2
package/dist/ClippyVitePlugin.js
CHANGED
|
@@ -12,6 +12,9 @@ export function clippyVitePlugin(options) {
|
|
|
12
12
|
return {
|
|
13
13
|
name: 'clippy-vite-plugin',
|
|
14
14
|
apply: 'build',
|
|
15
|
+
// Run transform before JSX compilers (react-swc, @vitejs/plugin-react, babel)
|
|
16
|
+
// so data-clippy-id injection sees the original JSX, not compiled JS.
|
|
17
|
+
enforce: 'pre',
|
|
15
18
|
moduleParsed(moduleInfo) {
|
|
16
19
|
if (moduleInfo.id && !moduleInfo.id.includes('node_modules')) {
|
|
17
20
|
moduleGraph.set(moduleInfo.id, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcoder-x/vite",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dcoder-x/plugin-shared": "^0.1.
|
|
21
|
+
"@dcoder-x/plugin-shared": "^0.1.9"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"vite": ">=4.0.0",
|