mirror of
https://github.com/alex8088/electron-vite.git
synced 2025-11-10 06:24:33 +08:00
refactor: deprecated externalizeDepsPlugin and bytecodePlugin
This commit is contained in:
parent
fe7e631f47
commit
0276407b5b
@ -150,7 +150,9 @@ export interface BytecodeOptions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Compile to v8 bytecode to protect source code.
|
* Compile source code to v8 bytecode.
|
||||||
|
*
|
||||||
|
* @deprecated use `build.bytecode` config option instead
|
||||||
*/
|
*/
|
||||||
export function bytecodePlugin(options: BytecodeOptions = {}): Plugin | null {
|
export function bytecodePlugin(options: BytecodeOptions = {}): Plugin | null {
|
||||||
if (process.env.NODE_ENV_ELECTRON_VITE !== 'production') {
|
if (process.env.NODE_ENV_ELECTRON_VITE !== 'production') {
|
||||||
|
|||||||
@ -7,7 +7,9 @@ export interface ExternalOptions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Automatically externalize dependencies
|
* Automatically externalize dependencies.
|
||||||
|
*
|
||||||
|
* @deprecated use `build.externalizeDeps` config option instead
|
||||||
*/
|
*/
|
||||||
export function externalizeDepsPlugin(options: ExternalOptions = {}): Plugin | null {
|
export function externalizeDepsPlugin(options: ExternalOptions = {}): Plugin | null {
|
||||||
const { exclude = [], include = [] } = options
|
const { exclude = [], include = [] } = options
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user