Skip to content

Commit

Permalink
Turning off splitting and treeshaking in tsup config
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderkalachev committed Oct 26, 2024
1 parent 68f4d55 commit 514c5a7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions packages/@weresk/maket/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @weresk/maket

## 0.1.3

### Patch Changes

- Turning off splitting and treeshaking in tsup config

## 0.1.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/@weresk/maket/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@weresk/maket",
"version": "0.1.2",
"version": "0.1.3",
"private": false,
"exports": {
".": {
Expand Down
8 changes: 4 additions & 4 deletions packages/@weresk/maket/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ export default defineConfig([
},
format: ["esm", "cjs"],
outDir: "dist",
dts: true, // Generates TypeScript declaration files
splitting: true, // Disable code-splitting if you want single output files per entry
treeshake: true,
dts: true,
splitting: false,
treeshake: false,
sourcemap: true,
clean: true,
external: ["@sanity/icons", "react-hotkeys-hook"]
external: ["@sanity/icons", "react-hotkeys-hook", "react", "react-dom", "next"]
}
]);

0 comments on commit 514c5a7

Please sign in to comment.