Skip to content

Commit

Permalink
Merge pull request #179 from acelaya-forks/feature/no-bundle-dependen…
Browse files Browse the repository at this point in the history
…cies

Make sure project dependencies are not bundled with the package
  • Loading branch information
acelaya authored Apr 16, 2024
2 parents e06b74b + 2ec4c2f commit d2bb3f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org).

## [Unreleased]
## [0.5.1] - 2024-04-16
### Added
* *Nothing*

Expand All @@ -18,7 +18,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
* *Nothing*

### Fixed
* *Nothing*
* Make sure dependencies are not bundled with the dist package.


## [0.5.0] - 2024-03-17
Expand Down
3 changes: 2 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export default defineConfig({
fileName: 'index',
},
rollupOptions: {
external: [...Object.keys(pack.peerDependencies ?? {}), 'react/jsx-runtime'],
// Make sure dependencies and peer dependencies are not bundled with the library
external: [...Object.keys(pack.dependencies), ...Object.keys(pack.peerDependencies), 'react/jsx-runtime'],
output: {
assetFileNames: 'index.[ext]',
},
Expand Down

0 comments on commit d2bb3f6

Please sign in to comment.