@limrun/ui 0.15.1 → 0.16.0

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/vite.config.ts CHANGED
@@ -11,6 +11,7 @@ export default defineConfig({
11
11
  lib: {
12
12
  entry: {
13
13
  index: resolve(__dirname, 'src/index.ts'),
14
+ lite: resolve(__dirname, 'src/lite.ts'),
14
15
  },
15
16
  name: 'LimrunUI',
16
17
  formats: ['es', 'cjs'],
@@ -19,6 +20,10 @@ export default defineConfig({
19
20
  rollupOptions: {
20
21
  external: ['react', 'react-dom', 'react/jsx-runtime'],
21
22
  output: {
23
+ // Both entries share one stylesheet; keep its historical name so
24
+ // consumers that reference dist/index.css directly keep working.
25
+ assetFileNames: (info) =>
26
+ info.names?.some((n) => n.endsWith('.css')) ? 'index.css' : '[name][extname]',
22
27
  globals: {
23
28
  react: 'React',
24
29
  'react-dom': 'ReactDOM',