Updated config and packages

This commit is contained in:
Sambo Chea 2022-05-17 08:51:07 +07:00
parent 9be02019de
commit 4179da8753
Signed by: sombochea
GPG Key ID: 3C7CF22A05D95490
3 changed files with 3 additions and 1961 deletions

1954
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{ {
"name": "@cubetiq/muui", "name": "@cubetiq/muui",
"version": "0.0.1-alpha.2", "version": "0.0.1-alpha.3",
"author": { "author": {
"name": "Sambo Chea", "name": "Sambo Chea",
"email": "sombochea@cubetiqs.com" "email": "sombochea@cubetiqs.com"
@ -30,10 +30,6 @@
"build": "tsc && vite build" "build": "tsc && vite build"
}, },
"peerDependencies": { "peerDependencies": {
"@emotion/react": "^11.x",
"@emotion/styled": "^11.x",
"@mui/icons-material": "^5.x",
"@mui/material": "^5.x",
"react": "^16.8.0 || 17.x || 18.x", "react": "^16.8.0 || 17.x || 18.x",
"react-dom": "^16.8.0 || 17.x | 18.x" "react-dom": "^16.8.0 || 17.x | 18.x"
}, },

View File

@ -8,13 +8,13 @@ export default defineConfig({
build: { build: {
lib: { lib: {
entry: path.resolve(__dirname, "src/lib/index.ts"), entry: path.resolve(__dirname, "src/lib/index.ts"),
name: "muui", name: "MUUI",
formats: ["es", "umd"], formats: ["es", "umd"],
fileName: (format) => `muui.${format}.js`, fileName: (format) => `muui.${format}.js`,
}, },
rollupOptions: { rollupOptions: {
// externalize deps that shouldn't be bundled // externalize deps that shouldn't be bundled
external: ["react", "react-dom", "@mui/icons-material", "@mui/material"], external: ["react", "react-dom"],
output: { output: {
// Provide global variables to use in the UMD build for externalized deps // Provide global variables to use in the UMD build for externalized deps
globals: { globals: {