@xyhp915/slack-base-ui 0.0.13 → 0.1.1

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/package.json CHANGED
@@ -1,17 +1,9 @@
1
1
  {
2
2
  "name": "@xyhp915/slack-base-ui",
3
3
  "main": "libs/index.js",
4
- "module": "libs/index.js",
5
4
  "types": "libs/index.d.ts",
6
- "version": "0.0.13",
5
+ "version": "0.1.1",
7
6
  "type": "module",
8
- "exports": {
9
- ".": {
10
- "types": "./libs/index.d.ts",
11
- "import": "./libs/index.js",
12
- "default": "./libs/index.js"
13
- }
14
- },
15
7
  "scripts": {
16
8
  "dev": "vite",
17
9
  "build": "tsc -b && vite build",
@@ -42,6 +34,6 @@
42
34
  "tailwindcss": "^4.1.18",
43
35
  "typescript": "~5.9.3",
44
36
  "typescript-eslint": "^8.46.4",
45
- "vite": "8.0.5"
37
+ "vite": "7.3.2"
46
38
  }
47
39
  }
@@ -23,15 +23,10 @@ export default defineConfig({
23
23
  fileName: () => 'index.js',
24
24
  },
25
25
  rollupOptions: {
26
- // Keep React/Base UI/icon libraries external so the published ESM bundle
27
- // doesn't inline CommonJS shims that call `require(...)` in the browser.
28
- external: (id) =>
29
- /^react(?:\/.*)?$/.test(id) ||
30
- /^react-dom(?:\/.*)?$/.test(id) ||
31
- /^@base-ui\/react(?:\/.*)?$/.test(id) ||
32
- /^lucide-react(?:\/.*)?$/.test(id),
26
+ // Don't bundle peer deps; consumers provide these.
27
+ external: ['react', 'react-dom', 'react-dom/client', 'react/jsx-runtime'],
33
28
  output: {
34
- // Format is ESM, so globals aren't required.
29
+ // Keep React as external. (Format is ESM, so globals aren't required.)
35
30
  exports: 'named',
36
31
  },
37
32
  },