@absolutejs/absolute 0.19.0-beta.869 → 0.19.0-beta.870
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
|
@@ -19110,7 +19110,22 @@ ${block}
|
|
|
19110
19110
|
newLine: ts7.NewLineKind.LineFeed,
|
|
19111
19111
|
removeComments: false
|
|
19112
19112
|
});
|
|
19113
|
-
const
|
|
19113
|
+
const fnText = printer.printNode(ts7.EmitHint.Unspecified, exportedDecl, sourceFile);
|
|
19114
|
+
const importDecls = [];
|
|
19115
|
+
for (const stmt of sourceFile.statements) {
|
|
19116
|
+
if (!ts7.isImportDeclaration(stmt))
|
|
19117
|
+
continue;
|
|
19118
|
+
if (!ts7.isStringLiteral(stmt.moduleSpecifier))
|
|
19119
|
+
continue;
|
|
19120
|
+
const spec = stmt.moduleSpecifier.text;
|
|
19121
|
+
if (spec.startsWith(".") || spec.startsWith("/"))
|
|
19122
|
+
continue;
|
|
19123
|
+
importDecls.push(printer.printNode(ts7.EmitHint.Unspecified, stmt, sourceFile));
|
|
19124
|
+
}
|
|
19125
|
+
const tsSourceText = (importDecls.length > 0 ? importDecls.join(`
|
|
19126
|
+
`) + `
|
|
19127
|
+
|
|
19128
|
+
` : "") + fnText;
|
|
19114
19129
|
const transpiled = ts7.transpileModule(tsSourceText, {
|
|
19115
19130
|
compilerOptions: {
|
|
19116
19131
|
module: ts7.ModuleKind.ES2022,
|
|
@@ -21936,7 +21951,11 @@ var STORE_KEY = "__elysiaStore", getGlobalValue = (key) => Reflect.get(globalThi
|
|
|
21936
21951
|
if (module === null) {
|
|
21937
21952
|
return new Response(`No HMR module for id=${id}. The component may not be in the current program, or the program isn't built yet (rebuild on first save).`, { status: 404 });
|
|
21938
21953
|
}
|
|
21939
|
-
|
|
21954
|
+
const { getDevVendorPaths: getDevVendorPaths2 } = await Promise.resolve().then(() => exports_devVendorPaths);
|
|
21955
|
+
const { rewriteImportsInContent: rewriteImportsInContent2 } = await Promise.resolve().then(() => (init_rewriteImportsPlugin(), exports_rewriteImportsPlugin));
|
|
21956
|
+
const vendorPaths = getDevVendorPaths2() ?? {};
|
|
21957
|
+
const rewritten = rewriteImportsInContent2(module, vendorPaths);
|
|
21958
|
+
return new Response(rewritten, {
|
|
21940
21959
|
headers: {
|
|
21941
21960
|
"Cache-Control": "no-store",
|
|
21942
21961
|
"Content-Type": "text/javascript; charset=utf-8"
|
|
@@ -30358,5 +30377,5 @@ export {
|
|
|
30358
30377
|
ANGULAR_INIT_TIMEOUT_MS
|
|
30359
30378
|
};
|
|
30360
30379
|
|
|
30361
|
-
//# debugId=
|
|
30380
|
+
//# debugId=2F4963E2E464D02864756E2164756E21
|
|
30362
30381
|
//# sourceMappingURL=index.js.map
|