Skip to content

Commit

Permalink
fix: 修复问题
Browse files Browse the repository at this point in the history
  • Loading branch information
jianbing.chen committed Aug 3, 2024
1 parent 7762233 commit 323410c
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 70 deletions.
8 changes: 7 additions & 1 deletion dist/cjs/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* vite-plugin-external
* 1. 处理JS模块中导入方式,修改为 window['vue']方式
* 2. 自动把外部链接插入到HTML中
*/
import { PluginOption } from 'vite';
import { Options } from './types';
import { UserOptions } from 'vite-plugin-externals/dist/src/types';
export declare function VitePluginExternals(options: Options, userOptions?: UserOptions): {};
export declare function VitePluginExternals(options: Options, userOptions?: UserOptions): PluginOption;
9 changes: 1 addition & 8 deletions dist/cjs/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cjs/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion dist/esm/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* vite-plugin-external
* 1. 处理JS模块中导入方式,修改为 window['vue']方式
* 2. 自动把外部链接插入到HTML中
*/
import { PluginOption } from 'vite';
import { Options } from './types';
import { UserOptions } from 'vite-plugin-externals/dist/src/types';
export declare function VitePluginExternals(options: Options, userOptions?: UserOptions): {};
export declare function VitePluginExternals(options: Options, userOptions?: UserOptions): PluginOption;
9 changes: 1 addition & 8 deletions dist/esm/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/esm/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-plugin-externals-new",
"version": "1.5.3",
"version": "1.5.5",
"description": "",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down Expand Up @@ -51,6 +51,7 @@
"rollup-plugin-typescript2": "^0.35.0",
"standard-version": "^9.1.1",
"typescript": "^4.6.0",
"vite": "^5.3.5",
"yorkie": "^2.0.0"
},
"gitHooks": {
Expand Down
Loading

0 comments on commit 323410c

Please sign in to comment.