unplugin-env 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-6MLX2H57.js +11 -0
- package/dist/{chunk-SE27KXSW.js → chunk-7VC4K6HT.js} +2172 -2020
- package/dist/chunk-C7KNK2L7.js +11 -0
- package/dist/esbuild.cjs +2169 -2021
- package/dist/esbuild.d.cts +6 -0
- package/dist/esbuild.js +4 -3
- package/dist/index.cjs +2175 -2021
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +7 -3
- package/dist/nuxt.cjs +2192 -2030
- package/dist/nuxt.d.cts +8 -0
- package/dist/nuxt.d.ts +5 -2
- package/dist/nuxt.js +21 -12
- package/dist/rollup.cjs +2169 -2021
- package/dist/rollup.d.cts +5 -0
- package/dist/rollup.d.ts +1 -2
- package/dist/rollup.js +4 -3
- package/dist/types.cjs +0 -1
- package/dist/types.d.cts +44 -0
- package/dist/types.d.ts +1 -0
- package/dist/vite.cjs +2169 -2021
- package/dist/vite.d.cts +6 -0
- package/dist/vite.js +3 -5
- package/dist/webpack.cjs +2169 -2021
- package/dist/webpack.d.cts +6 -0
- package/dist/webpack.js +3 -5
- package/package.json +33 -3
package/dist/rollup.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as rollup from 'rollup';
|
|
2
1
|
import { Options } from './types.js';
|
|
3
2
|
|
|
4
|
-
declare const _default: (options?: Options | undefined) =>
|
|
3
|
+
declare const _default: (options?: Options | undefined) => any;
|
|
5
4
|
|
|
6
5
|
export { _default as default };
|
package/dist/rollup.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-
|
|
2
|
+
unpluginFactory
|
|
3
|
+
} from "./chunk-7VC4K6HT.js";
|
|
4
4
|
|
|
5
5
|
// src/rollup.ts
|
|
6
|
-
|
|
6
|
+
import { createRollupPlugin } from "unplugin";
|
|
7
|
+
var rollup_default = createRollupPlugin(unpluginFactory);
|
|
7
8
|
export {
|
|
8
9
|
rollup_default as default
|
|
9
10
|
};
|
package/dist/types.cjs
CHANGED
package/dist/types.d.cts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
interface Options {
|
|
2
|
+
env?: {
|
|
3
|
+
/**
|
|
4
|
+
* 全局变量名称
|
|
5
|
+
* manifest
|
|
6
|
+
*/
|
|
7
|
+
globalName?: string;
|
|
8
|
+
/**
|
|
9
|
+
* 配置文件名
|
|
10
|
+
* manifest.js
|
|
11
|
+
*/
|
|
12
|
+
fileName?: string;
|
|
13
|
+
/**
|
|
14
|
+
* config.dev|prod.ts配置文件存放位置
|
|
15
|
+
* config
|
|
16
|
+
*/
|
|
17
|
+
dir?: string;
|
|
18
|
+
/**
|
|
19
|
+
* 用于正则,文件名中包含其中的开发环境
|
|
20
|
+
* /dev|development/i
|
|
21
|
+
*/
|
|
22
|
+
serve?: RegExp;
|
|
23
|
+
/**
|
|
24
|
+
* 用于正则,文件名中包含其中的生产环境
|
|
25
|
+
* /prod|production/i
|
|
26
|
+
*/
|
|
27
|
+
build?: RegExp;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
interface ResolvedOptions extends Required<Options> {
|
|
31
|
+
date: string;
|
|
32
|
+
}
|
|
33
|
+
interface GenerateScript {
|
|
34
|
+
code: string;
|
|
35
|
+
script: string;
|
|
36
|
+
emit: {
|
|
37
|
+
type: 'asset';
|
|
38
|
+
source: string;
|
|
39
|
+
fileName: string;
|
|
40
|
+
};
|
|
41
|
+
watchFolder: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { GenerateScript, Options, ResolvedOptions };
|