Skip to content

Commit

Permalink
Merge pull request #34 from liuxian496/developer
Browse files Browse the repository at this point in the history
Developer
  • Loading branch information
liuxian496 authored Mar 25, 2024
2 parents f05d4e9 + dcd9368 commit aa37545
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [0.8.5](https://github.com/liuxian496/litten/compare/v0.8.4...v0.8.5) (2024-03-25)



## [0.8.4](https://github.com/liuxian496/litten/compare/v0.8.3...v0.8.4) (2024-03-22)


Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
{
"name": "litten",
"version": "0.8.4",
"version": "0.8.5",
"private": false,
"main": "build/index.js",
"module": "build/index.esm.js",
"types": "build/types/index.d.ts",
"files": [
"build"
],
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
Expand Down
16 changes: 14 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,23 @@ export default defineConfig({
entry: resolve(__dirname, "src/index.ts"),
name: "litten",
formats: ["es", "cjs"],
fileName: "index",
fileName:'index',
// fileName: (format,entryName) => {
// let value = "";
// if (format === "cjs") {
// value = "index.js";
// } else if (format === "es") {
// value = `${entryName}.mjs`;
// } else {
// value = `${entryName}.${format}.js`;
// }

// return value;
// },
},
outDir: "build",
rollupOptions: {
external: ["react", "react-dom","react/jsx-runtime"],
external: ["react", "react-dom", "react/jsx-runtime"],
output: {
assetFileNames: `index.[ext]`,
},
Expand Down

0 comments on commit aa37545

Please sign in to comment.