veslx 0.0.17 → 0.0.18

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 +3 -5
  2. package/vite.config.ts +0 -22
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "veslx",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "veslx": "bin/veslx.ts"
@@ -52,7 +52,7 @@
52
52
  "remark-math": "^6.0.0",
53
53
  "remark-mdx-frontmatter": "^5.2.0",
54
54
  "shiki": "^3.15.0",
55
- "vite": "npm:rolldown-vite@7.2.2",
55
+ "vite": "^6.0.3",
56
56
  "@vitejs/plugin-react": "^5.1.0",
57
57
  "@mdx-js/rollup": "^3.1.1",
58
58
  "@tailwindcss/postcss": "^4.1.17",
@@ -79,7 +79,5 @@
79
79
  "typescript": "~5.9.3",
80
80
  "typescript-eslint": "^8.46.3"
81
81
  },
82
- "overrides": {
83
- "vite": "npm:rolldown-vite@7.2.2"
84
- }
82
+ "overrides": {}
85
83
  }
package/vite.config.ts CHANGED
@@ -18,28 +18,6 @@ export default defineConfig({
18
18
  cacheDir: path.join(__dirname, 'node_modules/.vite'),
19
19
  publicDir: path.join(__dirname, 'public'),
20
20
  plugins: [
21
- // Plugin to fix CommonJS default exports when served via /@fs/
22
- {
23
- name: 'fix-cjs-default-export',
24
- enforce: 'pre',
25
- transform(code, id) {
26
- // Only process JS files from node_modules
27
- if (!id.includes('node_modules') || !id.endsWith('.js')) return null
28
-
29
- // Skip files that are already ESM
30
- if (code.includes('export default') || code.includes('export {') || code.includes('export *')) return null
31
-
32
- // Check if it's a CommonJS module (has module.exports)
33
- if (code.includes('module.exports')) {
34
- // Add default export shim
35
- return {
36
- code: `${code}\nexport default module.exports;`,
37
- map: null
38
- }
39
- }
40
- return null
41
- }
42
- },
43
21
  tailwindcss(),
44
22
  // MDX must run before Vite's default transforms
45
23
  {