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",
"version": "0.0.1-alpha.2",
"version": "0.0.1-alpha.3",
"author": {
"name": "Sambo Chea",
"email": "sombochea@cubetiqs.com"
@ -30,10 +30,6 @@
"build": "tsc && vite build"
},
"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-dom": "^16.8.0 || 17.x | 18.x"
},

View File

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