@absolutejs/absolute 0.19.0-beta.1071 → 0.19.0-beta.1072
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/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/angular/index.js +55 -2
- package/dist/angular/index.js.map +3 -3
- package/dist/angular/server.js +55 -2
- package/dist/angular/server.js.map +3 -3
- package/dist/build.js +55 -2
- package/dist/build.js.map +3 -3
- package/dist/cli/index.js +58 -17
- package/dist/index.js +55 -2
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/build.js
CHANGED
|
@@ -15198,6 +15198,59 @@ ${fields}
|
|
|
15198
15198
|
deferSlots: inlinedTemplate.deferSlots,
|
|
15199
15199
|
source: result
|
|
15200
15200
|
};
|
|
15201
|
+
}, CLASS_KEYWORD = "class", isIdentifierChar = (char) => char !== undefined && /[A-Za-z0-9_$]/.test(char), skipStringLiteral = (source, start) => {
|
|
15202
|
+
const quote = source[start];
|
|
15203
|
+
let index = start + 1;
|
|
15204
|
+
while (index < source.length) {
|
|
15205
|
+
if (source[index] === "\\") {
|
|
15206
|
+
index += 2;
|
|
15207
|
+
continue;
|
|
15208
|
+
}
|
|
15209
|
+
if (source[index] === quote)
|
|
15210
|
+
return index + 1;
|
|
15211
|
+
index += 1;
|
|
15212
|
+
}
|
|
15213
|
+
return index;
|
|
15214
|
+
}, findDecoratedClassKeyword = (source, start) => {
|
|
15215
|
+
let index = start;
|
|
15216
|
+
let depth = 0;
|
|
15217
|
+
while (index < source.length) {
|
|
15218
|
+
const char = source[index];
|
|
15219
|
+
if (char === '"' || char === "'" || char === "`") {
|
|
15220
|
+
index = skipStringLiteral(source, index);
|
|
15221
|
+
continue;
|
|
15222
|
+
}
|
|
15223
|
+
const isOpen = char === "(" || char === "[" || char === "{";
|
|
15224
|
+
const isClose = char === ")" || char === "]" || char === "}";
|
|
15225
|
+
const atClass = depth === 0 && source.startsWith(CLASS_KEYWORD, index) && !isIdentifierChar(source[index - 1]) && !isIdentifierChar(source[index + CLASS_KEYWORD.length]);
|
|
15226
|
+
if (atClass)
|
|
15227
|
+
return index;
|
|
15228
|
+
if (isOpen)
|
|
15229
|
+
depth += 1;
|
|
15230
|
+
else if (isClose)
|
|
15231
|
+
depth -= 1;
|
|
15232
|
+
index += 1;
|
|
15233
|
+
}
|
|
15234
|
+
return -1;
|
|
15235
|
+
}, hoistExportPastDecorators = (source) => {
|
|
15236
|
+
const exportBeforeDecorator = /\bexport\s+(?=@)/g;
|
|
15237
|
+
let result = "";
|
|
15238
|
+
let lastIndex = 0;
|
|
15239
|
+
let match = exportBeforeDecorator.exec(source);
|
|
15240
|
+
while (match !== null) {
|
|
15241
|
+
const decoratorStart = match.index + match[0].length;
|
|
15242
|
+
const classIndex = findDecoratedClassKeyword(source, decoratorStart);
|
|
15243
|
+
if (classIndex !== -1) {
|
|
15244
|
+
result += source.slice(lastIndex, match.index);
|
|
15245
|
+
result += source.slice(decoratorStart, classIndex);
|
|
15246
|
+
result += `export ${CLASS_KEYWORD}`;
|
|
15247
|
+
lastIndex = classIndex + CLASS_KEYWORD.length;
|
|
15248
|
+
exportBeforeDecorator.lastIndex = lastIndex;
|
|
15249
|
+
}
|
|
15250
|
+
match = exportBeforeDecorator.exec(source);
|
|
15251
|
+
}
|
|
15252
|
+
result += source.slice(lastIndex);
|
|
15253
|
+
return result;
|
|
15201
15254
|
}, compileAngularFileJIT = async (inputPath, outDir, rootDir, stylePreprocessors, cacheBuster) => {
|
|
15202
15255
|
const entryPath = resolve21(inputPath);
|
|
15203
15256
|
const allOutputs = [];
|
|
@@ -15262,7 +15315,7 @@ ${fields}
|
|
|
15262
15315
|
return specifier.includes("?") ? `${specifier}&t=${cacheBuster}` : `${specifier}?t=${cacheBuster}`;
|
|
15263
15316
|
};
|
|
15264
15317
|
const transpileAndRewrite = (sourceCode, relativeDir, actualPath, importRewrites) => {
|
|
15265
|
-
let processedContent = angularTranspiler.transformSync(sourceCode);
|
|
15318
|
+
let processedContent = angularTranspiler.transformSync(hoistExportPastDecorators(sourceCode));
|
|
15266
15319
|
const outputPath = toOutputPath(actualPath);
|
|
15267
15320
|
const rewriteBareImport = (prefix, specifier, suffix) => {
|
|
15268
15321
|
const rewritten = importRewrites.get(specifier);
|
|
@@ -27630,5 +27683,5 @@ export {
|
|
|
27630
27683
|
build
|
|
27631
27684
|
};
|
|
27632
27685
|
|
|
27633
|
-
//# debugId=
|
|
27686
|
+
//# debugId=71ECEF591C99044E64756E2164756E21
|
|
27634
27687
|
//# sourceMappingURL=build.js.map
|