[@portaljs/components][xl] - @portaljs/ckan package

+ Accompaning example using said package
+ Removed the "example" from all the examples names
This commit is contained in:
Luccas Mateus de Medeiros Gomes
2023-05-23 14:13:36 -03:00
parent 622428a015
commit 91c76c213c
70 changed files with 26359 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
import react from '@vitejs/plugin-react';
import path from 'node:path';
import { defineConfig } from 'vite';
import dts from 'vite-plugin-dts';
export default defineConfig({
plugins: [
react(),
dts({
insertTypesEntry: true,
}),
],
build: {
lib: {
entry: path.resolve(__dirname, 'src/index.ts'),
name: 'components',
formats: ['es', 'umd'],
fileName: (format) => `components.${format}.js`,
},
rollupOptions: {
external: ['react', 'react-dom', 'styled-components'],
output: {
globals: {
react: 'React',
'react-dom': 'ReactDOM'
},
},
},
},
});