Compare commits
3 Commits
d2838808b8
...
cfaafc1ee0
Author | SHA1 | Date | |
---|---|---|---|
Sambo Chea | cfaafc1ee0 | ||
Sambo Chea | 4179da8753 | ||
Sambo Chea | 9be02019de |
File diff suppressed because it is too large
Load Diff
16
package.json
16
package.json
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@cubetiq/muui",
|
||||
"version": "0.0.1-alpha.2",
|
||||
"version": "0.0.1-alpha.4",
|
||||
"author": {
|
||||
"name": "Sambo Chea",
|
||||
"email": "sombochea@cubetiqs.com"
|
||||
|
@ -13,13 +13,13 @@
|
|||
"mui"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "./dist/muui-vite.umd.js",
|
||||
"module": "./dist/muui-vite.es.js",
|
||||
"main": "./dist/muui.umd.js",
|
||||
"module": "./dist/muui.es.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./dist/muui-vite.es.js",
|
||||
"require": "./dist/muui-vite.umd.js"
|
||||
"import": "./dist/muui.es.js",
|
||||
"require": "./dist/muui.umd.js"
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
|
@ -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"
|
||||
},
|
||||
|
@ -46,7 +42,7 @@
|
|||
"eslint-plugin-react": "^7.29.4",
|
||||
"typescript": "^4.6.3",
|
||||
"vite": "^2.9.9",
|
||||
"vite-plugin-dts": "^1.1.1",
|
||||
"vite-plugin-dts": "^1.1.1"
|
||||
},
|
||||
"browserslist": {
|
||||
"production": [
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
import * as path from "node:path";
|
||||
import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react";
|
||||
import dts from 'vite-plugin-dts';
|
||||
import dts from "vite-plugin-dts";
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
build: {
|
||||
lib: {
|
||||
entry: path.resolve(__dirname, "src/lib/index.ts"),
|
||||
name: "muui",
|
||||
formats: ['es', 'umd'],
|
||||
name: "MUUI",
|
||||
formats: ["es", "umd"],
|
||||
fileName: (format) => `muui.${format}.js`,
|
||||
},
|
||||
rollupOptions: {
|
||||
// externalize deps that shouldn't be bundled
|
||||
external: ["react", "react-dom", "@emotion/react", "@emotion/styled", "@mui/icons-material", "@mui/material"],
|
||||
external: ["react", "react-dom"],
|
||||
output: {
|
||||
// Provide global variables to use in the UMD build for externalized deps
|
||||
globals: {
|
||||
|
@ -23,7 +23,10 @@ export default defineConfig({
|
|||
},
|
||||
},
|
||||
},
|
||||
plugins: [react(),dts({
|
||||
insertTypesEntry: true
|
||||
})],
|
||||
plugins: [
|
||||
react(),
|
||||
dts({
|
||||
insertTypesEntry: true,
|
||||
}),
|
||||
],
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user