-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix exports and allow helpers import (#2)
- Loading branch information
Showing
2 changed files
with
31 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
import { defineConfig } from 'tsup'; | ||
|
||
export default defineConfig({ | ||
entryPoints: ['src/index.ts'], // Adjust the entry point based on your project structure | ||
entry: ['src/index.ts', 'src/helpers.ts'], // Adjust the entry point based on your project structure | ||
format: ['cjs', 'esm'], // Generate CommonJS and ECMAScript Modules bundles | ||
dts: true, // Generate TypeScript declaration files (*.d.ts) | ||
outDir: 'dist', // Output directory for the generated bundles | ||
minify: true, // Optionally, enable minification | ||
sourcemap: true, // Generate sourcemaps for easier debugging | ||
splitting: true, | ||
clean: true, | ||
minify: true, // Optionally, enable minification | ||
minifyIdentifiers: true, | ||
minifyWhitespace: true, | ||
minifySyntax: true, | ||
}); |