@xyhp915/slack-base-ui 0.0.12 → 0.0.13
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/libs/index.js +811 -14677
- package/package.json +9 -1
- package/vite.libs.config.ts +9 -10
package/package.json
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyhp915/slack-base-ui",
|
|
3
3
|
"main": "libs/index.js",
|
|
4
|
+
"module": "libs/index.js",
|
|
4
5
|
"types": "libs/index.d.ts",
|
|
5
|
-
"version": "0.0.
|
|
6
|
+
"version": "0.0.13",
|
|
6
7
|
"type": "module",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./libs/index.d.ts",
|
|
11
|
+
"import": "./libs/index.js",
|
|
12
|
+
"default": "./libs/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
7
15
|
"scripts": {
|
|
8
16
|
"dev": "vite",
|
|
9
17
|
"build": "tsc -b && vite build",
|
package/vite.libs.config.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
// @ts-ignore
|
|
2
2
|
import { defineConfig } from 'vite'
|
|
3
3
|
// @ts-ignore
|
|
4
|
-
import { esmExternalRequirePlugin } from 'rolldown/plugins'
|
|
5
|
-
// @ts-ignore
|
|
6
4
|
import react from '@vitejs/plugin-react'
|
|
7
5
|
// @ts-ignore
|
|
8
6
|
import tailwindcss from '@tailwindcss/vite'
|
|
@@ -14,11 +12,7 @@ import { resolve } from 'node:path'
|
|
|
14
12
|
* Entrypoint: src/index.ts
|
|
15
13
|
*/
|
|
16
14
|
export default defineConfig({
|
|
17
|
-
plugins: [
|
|
18
|
-
react(),
|
|
19
|
-
tailwindcss(),
|
|
20
|
-
esmExternalRequirePlugin(),
|
|
21
|
-
],
|
|
15
|
+
plugins: [react(), tailwindcss()],
|
|
22
16
|
build: {
|
|
23
17
|
outDir: 'libs',
|
|
24
18
|
emptyOutDir: false,
|
|
@@ -29,10 +23,15 @@ export default defineConfig({
|
|
|
29
23
|
fileName: () => 'index.js',
|
|
30
24
|
},
|
|
31
25
|
rollupOptions: {
|
|
32
|
-
//
|
|
33
|
-
|
|
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),
|
|
34
33
|
output: {
|
|
35
|
-
//
|
|
34
|
+
// Format is ESM, so globals aren't required.
|
|
36
35
|
exports: 'named',
|
|
37
36
|
},
|
|
38
37
|
},
|