Skip to content

Commit

Permalink
chore: relese v0.11.2
Browse files Browse the repository at this point in the history
  • Loading branch information
nonzzz committed Aug 17, 2023
1 parent 9a599a5 commit fcec425
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 0.11.2

### Minor

- Bump `happy-dom` version. (Reduce unnecessary installation size).
- Remove `@types/estree`

## 0.11.1

### Patches
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-plugin-cdn2",
"version": "0.11.1",
"version": "0.11.2",
"description": "A Vite plugin that allowed you replace module with CDN",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function cdn(opts: CDNPluginOptions = {}): Plugin[] {
scanner.scanAllDependencies()
debug('scanning done', scanner.dependencies)
generator.injectDependencies(scanner.dependencies)
const plugin = config.plugins.find(p => p.name === 'vite-plugin-cdn2:presetModule')
const plugin = config.plugins.find(p => p.name === 'vite-plugin-cdn2:presetModule')
if (plugin) {
const presetModuleApi = plugin.api as PresetModuleApi
presetModuleApi.injectFilter(filter)
Expand Down

0 comments on commit fcec425

Please sign in to comment.