vite 4.0.2 → 4.0.4

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.

Potentially problematic release.


This version of vite might be problematic. Click here for more details.

@@ -99,9 +99,17 @@ var resolveId$1 = function (id, base, options) {
99
99
  })
100
100
  };
101
101
 
102
- var readCache$1 = {exports: {}};
102
+ var readCacheExports = {};
103
+ var readCache$1 = {
104
+ get exports(){ return readCacheExports; },
105
+ set exports(v){ readCacheExports = v; },
106
+ };
103
107
 
104
- var pify$2 = {exports: {}};
108
+ var pifyExports = {};
109
+ var pify$2 = {
110
+ get exports(){ return pifyExports; },
111
+ set exports(v){ pifyExports = v; },
112
+ };
105
113
 
106
114
  var processFn = function (fn, P, opts) {
107
115
  return function () {
@@ -172,7 +180,7 @@ pify$1.all = pify$1;
172
180
 
173
181
  var fs = require$$0__default;
174
182
  var path$2 = require$$0;
175
- var pify = pify$2.exports;
183
+ var pify = pifyExports;
176
184
 
177
185
  var stat = pify(fs.stat);
178
186
  var readFile = pify(fs.readFile);
@@ -211,7 +219,7 @@ readCache$1.exports = function (path, encoding) {
211
219
  });
212
220
  };
213
221
 
214
- readCache$1.exports.sync = function (path, encoding) {
222
+ readCacheExports.sync = function (path, encoding) {
215
223
  path = resolve(path);
216
224
 
217
225
  try {
@@ -237,7 +245,7 @@ readCache$1.exports.sync = function (path, encoding) {
237
245
 
238
246
  };
239
247
 
240
- readCache$1.exports.get = function (path, encoding) {
248
+ readCacheExports.get = function (path, encoding) {
241
249
  path = resolve(path);
242
250
  if (cache[path]) {
243
251
  return convert(cache[path].content, encoding);
@@ -245,7 +253,7 @@ readCache$1.exports.get = function (path, encoding) {
245
253
  return null;
246
254
  };
247
255
 
248
- readCache$1.exports.clear = function () {
256
+ readCacheExports.clear = function () {
249
257
  cache = Object.create(null);
250
258
  };
251
259
 
@@ -265,7 +273,7 @@ var dataUrl = {
265
273
  contents,
266
274
  };
267
275
 
268
- const readCache = readCache$1.exports;
276
+ const readCache = readCacheExports;
269
277
  const dataURL$1 = dataUrl;
270
278
 
271
279
  var loadContent$1 = filename => {