Skip to content
This repository has been archived by the owner on Oct 26, 2024. It is now read-only.

Commit

Permalink
Upgrading dependencies and setting Stimulus as external dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumebriday committed Apr 3, 2022
1 parent 8979734 commit c10620b
Show file tree
Hide file tree
Showing 4 changed files with 944 additions and 686 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [4.0.1] - 2022-04-03

### Chore

- Upgrading dependencies
- Setting Stimulus as external dependency reducing bundle size from `2.20 KiB` to `0.70 KiB`.

## [4.0.0] - 2021-09-27

### Chore
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@
"np": "np --no-2fa --no-test"
},
"devDependencies": {
"@babel/core": "7.15.5",
"@babel/core": "7.17.8",
"@babel/plugin-syntax-class-properties": "7.12.13",
"@babel/preset-env": "^7.15.6",
"@babel/preset-typescript": "^7.15.0",
"@hotwired/stimulus": "^3.0.0",
"np": "^7.5.0",
"@babel/preset-env": "^7.16.11",
"@babel/preset-typescript": "^7.16.7",
"@hotwired/stimulus": "^3.0.1",
"np": "^7.6.1",
"prettier-standard": "16.4.1",
"typescript": "^4.4.3",
"vite": "^2.5.10"
"typescript": "^4.6.3",
"vite": "^2.9.1"
},
"peerDependencies": {
"@hotwired/stimulus": "^3.0.0"
Expand Down
4 changes: 2 additions & 2 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ export default ({ mode }) => {
name: 'stimulus-content-loader'
},
rollupOptions: {
external: ['stimulus'],
external: ['@hotwired/stimulus'],
output: {
globals: {
stimulus: 'Stimulus'
'@hotwired/stimulus': 'Stimulus'
}
}
}
Expand Down
Loading

0 comments on commit c10620b

Please sign in to comment.