Skip to content

Commit

Permalink
Add exports field to fix webpack errors
Browse files Browse the repository at this point in the history
  • Loading branch information
msujew committed Nov 11, 2024
1 parent 3b93ff2 commit 8517446
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- Updated `package.json` to include the `exports` field for better bundler support.

### Fixed

## [6.1.1]
Expand Down
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@
"license": "MIT",
"main": "lib/inversify.js",
"module": "es/inversify.js",
"exports": {
".": {
"import": "./es/inversify.js",
"require": "./lib/inversify.js"
}
},
"name": "inversify",
"repository": {
"type": "git",
Expand Down

0 comments on commit 8517446

Please sign in to comment.