Skip to content

Commit

Permalink
Merge pull request #30 from baizeteam/master
Browse files Browse the repository at this point in the history
release
  • Loading branch information
sulgweb authored Jul 20, 2024
2 parents fa5d3cc + 06ebbb9 commit e79913e
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 7 deletions.
6 changes: 6 additions & 0 deletions packages/cdn-script-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# cdn-script-core

## 1.0.2

### Patch Changes

- 修复 cjs 导入问题

## 1.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cdn-script-core/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { isObject, isStr } from "./common";

export type ExternalOption = any;

export default async function getExternalScript({
export async function getExternalScript({
libName,
customScript,
external: inputExternal,
Expand Down
2 changes: 1 addition & 1 deletion packages/cdn-script-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cdn-script-core",
"version": "1.0.1",
"version": "1.0.2",
"description": "",
"type": "module",
"main": "./dist/index.umd.cjs",
Expand Down
8 changes: 8 additions & 0 deletions packages/vite-add-cdn-script/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# vite-add-cdn-script

## 1.0.3

### Patch Changes

- 修复 cjs 导入问题
- Updated dependencies
- [email protected]

## 1.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/vite-add-cdn-script/lib/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { PluginOption, UserConfig } from "vite";
import { EEnforce, IOptions } from "./types";
import { libName } from "./config";
import getExternalScript from "cdn-script-core";
import { getExternalScript } from "cdn-script-core";

function viteAddCdnScript(opt: IOptions): PluginOption {
const { customScript = {}, defaultCdns = ["jsdelivr", "unpkg"] } = opt;
Expand Down
2 changes: 1 addition & 1 deletion packages/vite-add-cdn-script/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-add-cdn-script",
"version": "1.0.2",
"version": "1.0.3",
"keywords": [
"vite",
"cdn",
Expand Down
8 changes: 8 additions & 0 deletions packages/webpack-add-cdn-script/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# webpack-add-cdn-script

## 0.0.3

### Patch Changes

- 修复 cjs 导入问题
- Updated dependencies
- [email protected]

## 0.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/webpack-add-cdn-script/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import path from "path";
import { Compilation, Compiler, sources } from "webpack";
import { IOptions } from "./types";
import { libName } from "./config";
import getExternalScript from "cdn-script-core";
import { getExternalScript } from "cdn-script-core";

class WebpackAddCdnScript {
constructor(private options: IOptions) {}
Expand Down
4 changes: 2 additions & 2 deletions packages/webpack-add-cdn-script/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "webpack-add-cdn-script",
"version": "0.0.2",
"version": "0.0.3",
"keywords": [
"webpack",
"cdn",
Expand All @@ -26,7 +26,7 @@
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index/umd.cjs"
"require": "./dist/index.umd.cjs"
},
"scripts": {
"dev": "vite",
Expand Down

0 comments on commit e79913e

Please sign in to comment.