@absolutejs/absolute 0.19.0-beta.20 → 0.19.0-beta.21
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/.absolutejs/tsconfig.tsbuildinfo +1 -1
- package/dist/build.js +13 -2
- package/dist/build.js.map +4 -4
- package/dist/index.js +27 -2
- package/dist/index.js.map +5 -5
- package/native/packages/darwin-arm64/fast_ops.dylib +0 -0
- package/native/packages/darwin-arm64/package.json +1 -1
- package/native/packages/darwin-x64/fast_ops.dylib +0 -0
- package/native/packages/darwin-x64/package.json +1 -1
- package/native/packages/linux-arm64/package.json +1 -1
- package/native/packages/linux-x64/fast_ops.so +0 -0
- package/native/packages/linux-x64/package.json +1 -1
- package/package.json +5 -5
- package/run-patched.sh +0 -5
package/dist/build.js
CHANGED
|
@@ -171467,7 +171467,7 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
|
|
|
171467
171467
|
if (!options?.preserveIntermediateFiles)
|
|
171468
171468
|
await cleanup({
|
|
171469
171469
|
angularDir,
|
|
171470
|
-
reactIndexesPath,
|
|
171470
|
+
reactIndexesPath: hmr ? undefined : reactIndexesPath,
|
|
171471
171471
|
svelteDir,
|
|
171472
171472
|
vueDir
|
|
171473
171473
|
});
|
|
@@ -202213,6 +202213,17 @@ var SRC_PREFIX = "/@src/", jsTranspiler2, TRANSPILABLE, REACT_EXTENSIONS, escape
|
|
|
202213
202213
|
}
|
|
202214
202214
|
return `${prefix}${SRC_PREFIX}${srcPath.replace(/\\/g, "/")}${suffix}`;
|
|
202215
202215
|
});
|
|
202216
|
+
result = result.replace(/((?:from|import)\s*["'])(\/[^"']+\.(tsx?|jsx?|ts))(["'])/g, (_match, prefix, absPath, _ext, suffix) => {
|
|
202217
|
+
if (absPath.startsWith(projectRoot)) {
|
|
202218
|
+
const rel2 = relative6(projectRoot, absPath).replace(/\\/g, "/");
|
|
202219
|
+
return `${prefix}${SRC_PREFIX}${rel2}${suffix}`;
|
|
202220
|
+
}
|
|
202221
|
+
const rel = relative6(projectRoot, absPath).replace(/\\/g, "/");
|
|
202222
|
+
if (!rel.startsWith("..")) {
|
|
202223
|
+
return `${prefix}${SRC_PREFIX}${rel}${suffix}`;
|
|
202224
|
+
}
|
|
202225
|
+
return _match;
|
|
202226
|
+
});
|
|
202216
202227
|
return result;
|
|
202217
202228
|
}, HOOK_NAMES, REFRESH_PREAMBLE, JSX_AUTO_RE, JSXS_AUTO_RE, JSX_PROD_RE, FRAGMENT_RE, addJsxImport = (code) => {
|
|
202218
202229
|
const imports = [];
|
|
@@ -203947,5 +203958,5 @@ export {
|
|
|
203947
203958
|
build
|
|
203948
203959
|
};
|
|
203949
203960
|
|
|
203950
|
-
//# debugId=
|
|
203961
|
+
//# debugId=D87CB1075218965664756E2164756E21
|
|
203951
203962
|
//# sourceMappingURL=build.js.map
|