Skip to content

Commit

Permalink
chore: release v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nonzzz committed Dec 26, 2023
1 parent d390daa commit 89c9654
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 1.1.0

### Features

- Expose resolve.

## 1.0.0

A stable version.
Expand Down
4 changes: 4 additions & 0 deletions docs/Q&A.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,7 @@ moudles: [{ name: "element-plus", aliases: ["es", "lib"] }];
> How to use it with React?
- Usually most of libraries will provide jsdelivr or unpkg filed but if isn't. You should set `relativeModule` for it.

> Why i can't find any module?
- If you‘re a pnpm user you need to explicitly install the peer dependencies
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": "1.0.0",
"version": "1.1.0",
"description": "A Vite plugin that allowed you replace module with CDN",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ function cdn(opts: CDNPluginOptions = {}): Plugin[] {
return transformWithBabel(code, api.dependency)
},
transformIndexHtml(html) {
debug('start transformIndexHtml')
const inject = createInjectScript(scanner.dependencies, resolve)
debug('transformIndexHtml Done', inject.tagDescriptors)
return {
html,
tags: inject.tagDescriptors
Expand Down

0 comments on commit 89c9654

Please sign in to comment.