weapp-vite 5.7.2 → 5.9.0

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 _chunkHKSOVHNEcjs = require('./chunk-HKSOVHNE.cjs');
3
+ var _chunkCFTSVRD4cjs = require('./chunk-CFTSVRD4.cjs');
4
4
  require('./chunk-JKNSNXOE.cjs');
5
5
  require('./chunk-RMHCFT5Q.cjs');
6
6
 
@@ -24,7 +24,7 @@ function createGetter(resolver) {
24
24
  get: resolver
25
25
  };
26
26
  }
27
- var ctx = _chunkHKSOVHNEcjs.getCompilerContext.call(void 0, );
27
+ var ctx = _chunkCFTSVRD4cjs.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-FSDX3XLK.mjs";
3
+ } from "./chunk-JCCRRTKA.mjs";
4
4
  import "./chunk-RJVVY5EI.mjs";
5
5
  import "./chunk-SSYIWHY2.mjs";
6
6
  import {
@@ -2,7 +2,7 @@ import {
2
2
  getCompilerContext,
3
3
  resetCompilerContext,
4
4
  setActiveCompilerContextKey
5
- } from "./chunk-FSDX3XLK.mjs";
5
+ } from "./chunk-JCCRRTKA.mjs";
6
6
  import {
7
7
  init_esm_shims
8
8
  } from "./chunk-TZWATIK3.mjs";
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkHKSOVHNEcjs = require('./chunk-HKSOVHNE.cjs');
5
+ var _chunkCFTSVRD4cjs = require('./chunk-CFTSVRD4.cjs');
6
6
 
7
7
 
8
8
  var _chunkQKFYCWOCcjs = require('./chunk-QKFYCWOC.cjs');
@@ -12,10 +12,10 @@ _chunkQKFYCWOCcjs.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
- _chunkHKSOVHNEcjs.resetCompilerContext.call(void 0, key);
15
+ _chunkCFTSVRD4cjs.resetCompilerContext.call(void 0, key);
16
16
  }
17
- _chunkHKSOVHNEcjs.setActiveCompilerContextKey.call(void 0, key);
18
- const ctx = _chunkHKSOVHNEcjs.getCompilerContext.call(void 0, key);
17
+ _chunkCFTSVRD4cjs.setActiveCompilerContextKey.call(void 0, key);
18
+ const ctx = _chunkCFTSVRD4cjs.getCompilerContext.call(void 0, key);
19
19
  const { configService, scanService, autoRoutesService } = ctx;
20
20
  await configService.load(options);
21
21
  if (autoRoutesService) {