unplugin-version-injector 1.1.1-alpha.4 → 1.1.1-alpha.5

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/webpack.js CHANGED
@@ -30,7 +30,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // src/webpack.ts
31
31
  var webpack_exports = {};
32
32
  __export(webpack_exports, {
33
- default: () => versionInjector
33
+ default: () => webpack_default
34
34
  });
35
35
  module.exports = __toCommonJS(webpack_exports);
36
36
 
@@ -139,3 +139,8 @@ var versionInjectorPlugin = (0, import_unplugin.createUnplugin)((options = {}) =
139
139
  function versionInjector(options = {}) {
140
140
  return versionInjectorPlugin.webpack(options);
141
141
  }
142
+ var webpack_default = versionInjector;
143
+ if (typeof module !== "undefined") {
144
+ module.exports = versionInjector;
145
+ module.exports.default = versionInjector;
146
+ }
package/dist/webpack.mjs CHANGED
@@ -110,6 +110,11 @@ var versionInjectorPlugin = createUnplugin((options = {}) => {
110
110
  function versionInjector(options = {}) {
111
111
  return versionInjectorPlugin.webpack(options);
112
112
  }
113
+ var webpack_default = versionInjector;
114
+ if (typeof module !== "undefined") {
115
+ module.exports = versionInjector;
116
+ module.exports.default = versionInjector;
117
+ }
113
118
  export {
114
- versionInjector as default
119
+ webpack_default as default
115
120
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unplugin-version-injector",
3
- "version": "1.1.1-alpha.4",
3
+ "version": "1.1.1-alpha.5",
4
4
  "author": "Nian Yi <nianyi778@gmail.com>",
5
5
  "license": "MIT",
6
6
  "description": "A universal plugin to inject version and build time into HTML (supports Webpack, Vite, Rollup)",