@absolutejs/absolute 0.19.0-beta.40 → 0.19.0-beta.42
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 +14 -3
- package/dist/build.js.map +3 -3
- package/dist/index.js +14 -3
- package/dist/index.js.map +3 -3
- package/native/packages/darwin-arm64/package.json +1 -1
- package/native/packages/darwin-x64/package.json +1 -1
- package/native/packages/linux-arm64/package.json +1 -1
- package/native/packages/linux-x64/package.json +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -202253,8 +202253,19 @@ ${stubs}
|
|
|
202253
202253
|
return { dynamicRegex, fromRegex, lookup, sideEffectRegex };
|
|
202254
202254
|
}, rewriteImports2 = (code, filePath, projectRoot, rewriter) => {
|
|
202255
202255
|
let result = code;
|
|
202256
|
-
|
|
202257
|
-
|
|
202256
|
+
result = result.replace(/^(import\s+.+?\s+from\s*["'])([^"'./][^"']*)(["'])/gm, (_match, prefix, specifier, suffix) => {
|
|
202257
|
+
const webPath = rewriter?.lookup.get(specifier);
|
|
202258
|
+
if (webPath)
|
|
202259
|
+
return `${prefix}${webPath}${suffix}`;
|
|
202260
|
+
return `${prefix}/@stub/${encodeURIComponent(specifier)}${suffix}`;
|
|
202261
|
+
});
|
|
202262
|
+
result = result.replace(/^(import\s*["'])([^"'./][^"']*)(["'])/gm, (_match, prefix, specifier, suffix) => {
|
|
202263
|
+
const webPath = rewriter?.lookup.get(specifier);
|
|
202264
|
+
if (webPath)
|
|
202265
|
+
return `${prefix}${webPath}${suffix}`;
|
|
202266
|
+
return `${prefix}/@stub/${encodeURIComponent(specifier)}${suffix}`;
|
|
202267
|
+
});
|
|
202268
|
+
result = result.replace(/^(export\s+.+?\s+from\s*["'])([^"'./][^"']*)(["'])/gm, (_match, prefix, specifier, suffix) => {
|
|
202258
202269
|
const webPath = rewriter?.lookup.get(specifier);
|
|
202259
202270
|
if (webPath)
|
|
202260
202271
|
return `${prefix}${webPath}${suffix}`;
|
|
@@ -204664,5 +204675,5 @@ export {
|
|
|
204664
204675
|
ANGULAR_INIT_TIMEOUT_MS
|
|
204665
204676
|
};
|
|
204666
204677
|
|
|
204667
|
-
//# debugId=
|
|
204678
|
+
//# debugId=2350BCD37BC3493864756E2164756E21
|
|
204668
204679
|
//# sourceMappingURL=index.js.map
|