@absolutejs/absolute 0.19.0-beta.42 → 0.19.0-beta.43
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 +7 -15
- package/dist/build.js.map +3 -3
- package/dist/index.js +7 -15
- 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/build.js
CHANGED
|
@@ -202203,24 +202203,16 @@ ${stubs}
|
|
|
202203
202203
|
return { dynamicRegex, fromRegex, lookup, sideEffectRegex };
|
|
202204
202204
|
}, rewriteImports2 = (code, filePath, projectRoot, rewriter) => {
|
|
202205
202205
|
let result = code;
|
|
202206
|
-
|
|
202206
|
+
const rewriteBare = (_match, prefix, specifier, suffix) => {
|
|
202207
202207
|
const webPath = rewriter?.lookup.get(specifier);
|
|
202208
202208
|
if (webPath)
|
|
202209
202209
|
return `${prefix}${webPath}${suffix}`;
|
|
202210
202210
|
return `${prefix}/@stub/${encodeURIComponent(specifier)}${suffix}`;
|
|
202211
|
-
}
|
|
202212
|
-
result = result.replace(/^(import\s*["'])([^"'./][^"']*)(["'])/gm,
|
|
202213
|
-
|
|
202214
|
-
|
|
202215
|
-
|
|
202216
|
-
return `${prefix}/@stub/${encodeURIComponent(specifier)}${suffix}`;
|
|
202217
|
-
});
|
|
202218
|
-
result = result.replace(/^(export\s+.+?\s+from\s*["'])([^"'./][^"']*)(["'])/gm, (_match, prefix, specifier, suffix) => {
|
|
202219
|
-
const webPath = rewriter?.lookup.get(specifier);
|
|
202220
|
-
if (webPath)
|
|
202221
|
-
return `${prefix}${webPath}${suffix}`;
|
|
202222
|
-
return `${prefix}/@stub/${encodeURIComponent(specifier)}${suffix}`;
|
|
202223
|
-
});
|
|
202211
|
+
};
|
|
202212
|
+
result = result.replace(/^(import\s+.+?\s+from\s*["'])([^"'./][^"']*)(["'])/gm, rewriteBare);
|
|
202213
|
+
result = result.replace(/^(import\s*["'])([^"'./][^"']*)(["'])/gm, rewriteBare);
|
|
202214
|
+
result = result.replace(/^(export\s+.+?\s+from\s*["'])([^"'./][^"']*)(["'])/gm, rewriteBare);
|
|
202215
|
+
result = result.replace(/(import\s*\(\s*["'])([^"'./][^"']*)(["']\s*\))/g, rewriteBare);
|
|
202224
202216
|
const fileDir = dirname7(filePath);
|
|
202225
202217
|
result = result.replace(/(from\s*["'])(\.\.?\/[^"']+)(["'])/g, (_match, prefix, relPath, suffix) => {
|
|
202226
202218
|
const absPath = resolve16(fileDir, relPath);
|
|
@@ -204227,5 +204219,5 @@ export {
|
|
|
204227
204219
|
build
|
|
204228
204220
|
};
|
|
204229
204221
|
|
|
204230
|
-
//# debugId=
|
|
204222
|
+
//# debugId=74CEC5A7E19325F564756E2164756E21
|
|
204231
204223
|
//# sourceMappingURL=build.js.map
|