-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jianbing.chen
committed
Aug 3, 2024
1 parent
86a01ef
commit 29cb593
Showing
14 changed files
with
6,292 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
node_modules | ||
dist | ||
docs-dist | ||
|
||
.DS_Store | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { Options } from './types'; | ||
import { UserOptions } from 'vite-plugin-externals/dist/src/types'; | ||
export declare function VitePluginExternals(options?: Options, userOptions?: UserOptions): Promise<{}>; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** | ||
* 类型定义 | ||
*/ | ||
export interface External { | ||
[key: string]: { | ||
/** 远程地址 */ | ||
src?: string; | ||
/** 变量名称 */ | ||
varName: string; | ||
/** 脚本注入位置 */ | ||
inject?: 'head' | 'body'; | ||
/** 是否为defer */ | ||
defer?: boolean; | ||
/** 是否为async */ | ||
async?: boolean; | ||
}; | ||
} | ||
export type Options = Partial<External>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { Options } from './types'; | ||
import { UserOptions } from 'vite-plugin-externals/dist/src/types'; | ||
export declare function VitePluginExternals(options?: Options, userOptions?: UserOptions): Promise<{}>; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** | ||
* 类型定义 | ||
*/ | ||
export interface External { | ||
[key: string]: { | ||
/** 远程地址 */ | ||
src?: string; | ||
/** 变量名称 */ | ||
varName: string; | ||
/** 脚本注入位置 */ | ||
inject?: 'head' | 'body'; | ||
/** 是否为defer */ | ||
defer?: boolean; | ||
/** 是否为async */ | ||
async?: boolean; | ||
}; | ||
} | ||
export type Options = Partial<External>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.