@absolutejs/absolute 0.17.7 → 0.17.9

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.js CHANGED
@@ -4,25 +4,43 @@ var __getProtoOf = Object.getPrototypeOf;
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ function __accessProp(key) {
8
+ return this[key];
9
+ }
10
+ var __toESMCache_node;
11
+ var __toESMCache_esm;
7
12
  var __toESM = (mod, isNodeMode, target) => {
13
+ var canCache = mod != null && typeof mod === "object";
14
+ if (canCache) {
15
+ var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
16
+ var cached = cache.get(mod);
17
+ if (cached)
18
+ return cached;
19
+ }
8
20
  target = mod != null ? __create(__getProtoOf(mod)) : {};
9
21
  const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
10
22
  for (let key of __getOwnPropNames(mod))
11
23
  if (!__hasOwnProp.call(to, key))
12
24
  __defProp(to, key, {
13
- get: () => mod[key],
25
+ get: __accessProp.bind(mod, key),
14
26
  enumerable: true
15
27
  });
28
+ if (canCache)
29
+ cache.set(mod, to);
16
30
  return to;
17
31
  };
18
32
  var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
33
+ var __returnValue = (v) => v;
34
+ function __exportSetter(name, newValue) {
35
+ this[name] = __returnValue.bind(null, newValue);
36
+ }
19
37
  var __export = (target, all) => {
20
38
  for (var name in all)
21
39
  __defProp(target, name, {
22
40
  get: all[name],
23
41
  enumerable: true,
24
42
  configurable: true,
25
- set: (newValue) => all[name] = () => newValue
43
+ set: __exportSetter.bind(all, name)
26
44
  });
27
45
  };
28
46
  var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
@@ -271252,9 +271270,8 @@ var hmrState = {
271252
271270
  init_constants();
271253
271271
 
271254
271272
  // src/core/lookup.ts
271255
- var isWrapped = (source) => ("manifest" in source) && typeof source.manifest === "object" && !Array.isArray(source.manifest);
271256
271273
  var asset = (source, name) => {
271257
- const assetPath = isWrapped(source) ? source.manifest[name] : source[name];
271274
+ const assetPath = source[name];
271258
271275
  if (assetPath === undefined) {
271259
271276
  throw new Error(`Asset "${name}" not found in manifest.`);
271260
271277
  }
@@ -271314,7 +271331,8 @@ Expected: export default defineConfig({ ... })`);
271314
271331
  // src/core/prepare.ts
271315
271332
  var prepare = async (configOrPath) => {
271316
271333
  const config = await loadConfig(configOrPath);
271317
- const isDev2 = true;
271334
+ const nodeEnv = process.env["NODE_ENV"];
271335
+ const isDev2 = nodeEnv === "development";
271318
271336
  const buildDir = resolve25(isDev2 ? config.buildDirectory ?? "build" : process.env.ABSOLUTE_BUILD_DIR ?? config.buildDirectory ?? "build");
271319
271337
  if (isDev2) {
271320
271338
  const { devBuild: devBuild2 } = await Promise.resolve().then(() => (init_devBuild(), exports_devBuild));
@@ -271453,5 +271471,5 @@ export {
271453
271471
  BUN_BUILD_WARNING_SUPPRESSION
271454
271472
  };
271455
271473
 
271456
- //# debugId=6A55DE3F62E246D064756E2164756E21
271474
+ //# debugId=DBDB87237B3A1CD064756E2164756E21
271457
271475
  //# sourceMappingURL=index.js.map