Updated config and packages
This commit is contained in:
parent
9be02019de
commit
4179da8753
1954
package-lock.json
generated
1954
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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"
|
||||||
},
|
},
|
||||||
|
@ -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: {
|
||||||
|
Loading…
Reference in New Issue
Block a user