vite-plugin-build-version-file 0.1.9 → 0.1.10

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/index.cjs CHANGED
@@ -193,6 +193,9 @@ function buildVersionPlugin(options = {}) {
193
193
  const plugin = {
194
194
  name: PLUGIN_NAME,
195
195
  configResolved(config) {
196
+ if (payload) {
197
+ return;
198
+ }
196
199
  const context = {
197
200
  command: config.command,
198
201
  mode: config.mode
package/dist/index.mjs CHANGED
@@ -168,6 +168,9 @@ function buildVersionPlugin(options = {}) {
168
168
  const plugin = {
169
169
  name: PLUGIN_NAME,
170
170
  configResolved(config) {
171
+ if (payload) {
172
+ return;
173
+ }
171
174
  const context = {
172
175
  command: config.command,
173
176
  mode: config.mode
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-build-version-file",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "A Vite plugin that emits version.json and injects version metadata into HTML.",
5
5
  "license": "MIT",
6
6
  "type": "module",