Fix async lifecycle ordering, add _spa_init boot phase, update to jqhtml _load_only/_load_render_only flags
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
21
node_modules/css-tree/lib/generator/create.js
generated
vendored
21
node_modules/css-tree/lib/generator/create.js
generated
vendored
@@ -23,12 +23,6 @@ function processChildren(node, delimeter) {
|
||||
node.children.forEach(this.node, this);
|
||||
}
|
||||
|
||||
function processChunk(chunk) {
|
||||
tokenize(chunk, (type, start, end) => {
|
||||
this.token(type, chunk.slice(start, end));
|
||||
});
|
||||
}
|
||||
|
||||
export function createGenerator(config) {
|
||||
const types = new Map();
|
||||
|
||||
@@ -52,9 +46,13 @@ export function createGenerator(config) {
|
||||
}
|
||||
},
|
||||
tokenBefore: tokenBefore.safe,
|
||||
token(type, value) {
|
||||
token(type, value, suppressAutoWhiteSpace) {
|
||||
prevCode = this.tokenBefore(prevCode, type, value);
|
||||
|
||||
if (!suppressAutoWhiteSpace && prevCode & 1) {
|
||||
this.emit(' ', WhiteSpace, true);
|
||||
}
|
||||
|
||||
this.emit(value, type, false);
|
||||
|
||||
if (type === Delim && value.charCodeAt(0) === REVERSESOLIDUS) {
|
||||
@@ -87,7 +85,14 @@ export function createGenerator(config) {
|
||||
node: (node) => handlers.node(node),
|
||||
children: processChildren,
|
||||
token: (type, value) => handlers.token(type, value),
|
||||
tokenize: processChunk
|
||||
tokenize: (raw) =>
|
||||
tokenize(raw, (type, start, end) => {
|
||||
handlers.token(
|
||||
type,
|
||||
raw.slice(start, end),
|
||||
start !== 0 // suppress auto whitespace for internal value tokens
|
||||
);
|
||||
})
|
||||
};
|
||||
|
||||
handlers.node(node);
|
||||
|
||||
Reference in New Issue
Block a user