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.
@@ -0,0 +1,6 @@
1
+ import * as webpack from 'webpack';
2
+ import { Options } from './types.cjs';
3
+
4
+ declare const _default: (options?: Options | undefined) => webpack.WebpackPluginInstance;
5
+
6
+ export { _default as default };
package/dist/webpack.js CHANGED
@@ -1,9 +1,7 @@
1
1
  import {
2
- unplugin_default
3
- } from "./chunk-SE27KXSW.js";
4
-
5
- // src/webpack.ts
6
- var webpack_default = unplugin_default.webpack;
2
+ webpack_default
3
+ } from "./chunk-6MLX2H57.js";
4
+ import "./chunk-7VC4K6HT.js";
7
5
  export {
8
6
  webpack_default as default
9
7
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unplugin-env",
3
3
  "type": "module",
4
- "version": "0.1.1",
4
+ "version": "0.1.2",
5
5
  "packageManager": "pnpm@7.1.1",
6
6
  "description": "Register global imports on demand for Vite and Webpack",
7
7
  "license": "MIT",
@@ -83,14 +83,44 @@
83
83
  "start": "esno src/index.ts",
84
84
  "test": "vitest"
85
85
  },
86
+ "peerDependencies": {
87
+ "@nuxt/kit": "^3",
88
+ "@nuxt/schema": "^3",
89
+ "esbuild": "*",
90
+ "rollup": "^3",
91
+ "vite": ">=3",
92
+ "webpack": "^4 || ^5"
93
+ },
94
+ "peerDependenciesMeta": {
95
+ "webpack": {
96
+ "optional": true
97
+ },
98
+ "rollup": {
99
+ "optional": true
100
+ },
101
+ "vite": {
102
+ "optional": true
103
+ },
104
+ "esbuild": {
105
+ "optional": true
106
+ },
107
+ "@nuxt/kit": {
108
+ "optional": true
109
+ },
110
+ "@nuxt/schema": {
111
+ "optional": true
112
+ }
113
+ },
86
114
  "dependencies": {
87
115
  "@antfu/utils": "^0.7.4",
88
116
  "compressing": "^1.9.0",
89
117
  "local-pkg": "^0.4.3",
90
- "unplugin": "^1.3.1"
118
+ "unplugin": "^1.5.0"
91
119
  },
92
120
  "devDependencies": {
93
121
  "@antfu/eslint-config": "^0.39.5",
122
+ "@nuxt/kit": "^3.7.3",
123
+ "@nuxt/schema": "^3.7.3",
94
124
  "@types/node": "^20.2.5",
95
125
  "@types/prettier": "^2.7.3",
96
126
  "bumpp": "^9.1.1",
@@ -103,7 +133,7 @@
103
133
  "prettier": "^2.8.8",
104
134
  "rimraf": "^5.0.1",
105
135
  "rollup": "^3.23.1",
106
- "tsup": "^6.7.0",
136
+ "tsup": "^7.2.0",
107
137
  "typescript": "^4.9.5",
108
138
  "vite": "^4.3.9",
109
139
  "vitest": "^0.31.4",