We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07427b3 commit 04add45Copy full SHA for 04add45
source/index.ts
@@ -7,7 +7,8 @@ type MaybeFalsy<T> = (T) | undefined | null | false
7
type MaybeArray<T> = (T) | (T)[]
8
9
interface ViteCompatiblePlugin extends Plugin {
10
- enforce: 'pre' | 'post'
+ apply?: 'build' | 'serve'
11
+ enforce?: 'pre' | 'post'
12
}
13
14
export interface ExternalsOptions {
@@ -138,6 +139,7 @@ function nodeExternals(options: ExternalsOptions = {}): Plugin {
138
139
return {
140
name: name.replace(/^rollup-plugin-/, ''),
141
version,
142
+ apply: 'build',
143
enforce: 'pre',
144
145
async buildStart() {
0 commit comments