@absolutejs/absolute 0.19.0-beta.870 → 0.19.0-beta.871
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
|
@@ -19111,6 +19111,13 @@ ${block}
|
|
|
19111
19111
|
removeComments: false
|
|
19112
19112
|
});
|
|
19113
19113
|
const fnText = printer.printNode(ts7.EmitHint.Unspecified, exportedDecl, sourceFile);
|
|
19114
|
+
const provisionalMethodsBlock = buildFreshClassMethodsBlock(classNode, className) ?? "";
|
|
19115
|
+
const referencedNames = new Set;
|
|
19116
|
+
const identRe = /[A-Za-z_$][A-Za-z0-9_$]*/g;
|
|
19117
|
+
let idMatch;
|
|
19118
|
+
while ((idMatch = identRe.exec(provisionalMethodsBlock)) !== null) {
|
|
19119
|
+
referencedNames.add(idMatch[0]);
|
|
19120
|
+
}
|
|
19114
19121
|
const importDecls = [];
|
|
19115
19122
|
for (const stmt of sourceFile.statements) {
|
|
19116
19123
|
if (!ts7.isImportDeclaration(stmt))
|
|
@@ -19120,6 +19127,21 @@ ${block}
|
|
|
19120
19127
|
const spec = stmt.moduleSpecifier.text;
|
|
19121
19128
|
if (spec.startsWith(".") || spec.startsWith("/"))
|
|
19122
19129
|
continue;
|
|
19130
|
+
const importedNames = [];
|
|
19131
|
+
const clause = stmt.importClause;
|
|
19132
|
+
if (clause?.name)
|
|
19133
|
+
importedNames.push(clause.name.text);
|
|
19134
|
+
if (clause?.namedBindings && ts7.isNamedImports(clause.namedBindings)) {
|
|
19135
|
+
for (const el of clause.namedBindings.elements) {
|
|
19136
|
+
if (el.isTypeOnly)
|
|
19137
|
+
continue;
|
|
19138
|
+
importedNames.push(el.name.text);
|
|
19139
|
+
}
|
|
19140
|
+
} else if (clause?.namedBindings && ts7.isNamespaceImport(clause.namedBindings)) {
|
|
19141
|
+
importedNames.push(clause.namedBindings.name.text);
|
|
19142
|
+
}
|
|
19143
|
+
if (!importedNames.some((n) => referencedNames.has(n)))
|
|
19144
|
+
continue;
|
|
19123
19145
|
importDecls.push(printer.printNode(ts7.EmitHint.Unspecified, stmt, sourceFile));
|
|
19124
19146
|
}
|
|
19125
19147
|
const tsSourceText = (importDecls.length > 0 ? importDecls.join(`
|
|
@@ -19129,7 +19151,8 @@ ${block}
|
|
|
19129
19151
|
const transpiled = ts7.transpileModule(tsSourceText, {
|
|
19130
19152
|
compilerOptions: {
|
|
19131
19153
|
module: ts7.ModuleKind.ES2022,
|
|
19132
|
-
target: ts7.ScriptTarget.ES2022
|
|
19154
|
+
target: ts7.ScriptTarget.ES2022,
|
|
19155
|
+
verbatimModuleSyntax: true
|
|
19133
19156
|
},
|
|
19134
19157
|
fileName: componentFilePath,
|
|
19135
19158
|
reportDiagnostics: false
|
|
@@ -30377,5 +30400,5 @@ export {
|
|
|
30377
30400
|
ANGULAR_INIT_TIMEOUT_MS
|
|
30378
30401
|
};
|
|
30379
30402
|
|
|
30380
|
-
//# debugId=
|
|
30403
|
+
//# debugId=CE269C6EA595A26164756E2164756E21
|
|
30381
30404
|
//# sourceMappingURL=index.js.map
|