Skip to content

Commit

Permalink
remove common js format from the build
Browse files Browse the repository at this point in the history
  • Loading branch information
antpaw committed Oct 2, 2024
1 parent 6188b85 commit 9783573
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
"name": "@hivemq/ui-library",
"version": "0.3.3",
"type": "module",
"main": "./dist/index.cjs.js",
"module": "./dist/index.es.js",
"types": "./dist/index.d.ts",
"publishConfig": {
"types": "./dist/index.d.ts",
"main": "./dist/index.cjs.js",
"module": "./dist/index.es.js"
},
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { resolve } from "path";
import { resolve } from "node:path";

import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
Expand Down Expand Up @@ -30,7 +30,7 @@ export default defineConfig({
build: {
lib: {
entry: resolve(__dirname, "src", "lib.ts"),
formats: ["es", "cjs"],
formats: ["es"],
fileName: (format) => `index.${format}.js`,
},
rollupOptions: {
Expand Down
2 changes: 1 addition & 1 deletion vite.web.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { resolve } from 'path'
import { resolve } from 'node:path'

import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
Expand Down

0 comments on commit 9783573

Please sign in to comment.