weapp-vite 5.6.3 → 5.7.1

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.
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkOQYESMEYcjs = require('./chunk-OQYESMEY.cjs');
3
+ var _chunkT4OVF4GPcjs = require('./chunk-T4OVF4GP.cjs');
4
4
  require('./chunk-MQBCRXCD.cjs');
5
5
  require('./chunk-G6EZVEVT.cjs');
6
6
 
@@ -24,7 +24,7 @@ function createGetter(resolver) {
24
24
  get: resolver
25
25
  };
26
26
  }
27
- var ctx = _chunkOQYESMEYcjs.getCompilerContext.call(void 0, );
27
+ var ctx = _chunkT4OVF4GPcjs.getCompilerContext.call(void 0, );
28
28
  var service = ctx.autoRoutesService;
29
29
  var routes = {};
30
30
  Object.defineProperties(routes, {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getCompilerContext
3
- } from "./chunk-LE4PAGI5.mjs";
3
+ } from "./chunk-O4FBXXL3.mjs";
4
4
  import "./chunk-N463WDOG.mjs";
5
5
  import "./chunk-2SUWUB42.mjs";
6
6
  import {
@@ -2,7 +2,7 @@ import {
2
2
  getCompilerContext,
3
3
  resetCompilerContext,
4
4
  setActiveCompilerContextKey
5
- } from "./chunk-LE4PAGI5.mjs";
5
+ } from "./chunk-O4FBXXL3.mjs";
6
6
  import {
7
7
  init_esm_shims
8
8
  } from "./chunk-SSQGJIB5.mjs";
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkOQYESMEYcjs = require('./chunk-OQYESMEY.cjs');
5
+ var _chunkT4OVF4GPcjs = require('./chunk-T4OVF4GP.cjs');
6
6
 
7
7
 
8
8
  var _chunkA5DD7GKXcjs = require('./chunk-A5DD7GKX.cjs');
@@ -12,10 +12,10 @@ _chunkA5DD7GKXcjs.init_cjs_shims.call(void 0, );
12
12
  async function createCompilerContext(options) {
13
13
  const key = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _ => _.key]), () => ( "default"));
14
14
  if (!_optionalChain([options, 'optionalAccess', _2 => _2.key])) {
15
- _chunkOQYESMEYcjs.resetCompilerContext.call(void 0, key);
15
+ _chunkT4OVF4GPcjs.resetCompilerContext.call(void 0, key);
16
16
  }
17
- _chunkOQYESMEYcjs.setActiveCompilerContextKey.call(void 0, key);
18
- const ctx = _chunkOQYESMEYcjs.getCompilerContext.call(void 0, key);
17
+ _chunkT4OVF4GPcjs.setActiveCompilerContextKey.call(void 0, key);
18
+ const ctx = _chunkT4OVF4GPcjs.getCompilerContext.call(void 0, key);
19
19
  const { configService, scanService, autoRoutesService } = ctx;
20
20
  await configService.load(options);
21
21
  if (autoRoutesService) {