@atom.io/spa 0.0.10 → 0.0.11
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/README.md +5 -5
- package/dist/{BrandMarkScene-CBYk-RJ2.js → BrandMarkScene-BeWazldB.js} +4 -4
- package/dist/{BrandMarkScene-CBYk-RJ2.js.map → BrandMarkScene-BeWazldB.js.map} +1 -1
- package/dist/astro-application.d.ts +1 -1
- package/dist/astro-application.js +1 -1
- package/dist/astro-client.d.ts +1 -1
- package/dist/astro-client.js +5 -5
- package/dist/{astro-context-OdlexHR4.js → astro-context-B9XKrz8c.js} +1 -1
- package/dist/{astro-context-OdlexHR4.js.map → astro-context-B9XKrz8c.js.map} +1 -1
- package/dist/astro-middleware.js +2 -2
- package/dist/{astro-request-DRKvDjsO.js → astro-request-C0eYQlmS.js} +2 -2
- package/dist/{astro-request-DRKvDjsO.js.map → astro-request-C0eYQlmS.js.map} +1 -1
- package/dist/astro-resumability-client.d.ts +1 -1
- package/dist/astro-resumability-client.js +1 -1
- package/dist/astro-resumability-server.js +1 -1
- package/dist/astro-server.js +4 -4
- package/dist/{astro-shared-KxK9OUSj.d.ts → astro-shared-C-iO4PVU.d.ts} +2 -2
- package/dist/{astro-shared-KxK9OUSj.d.ts.map → astro-shared-C-iO4PVU.d.ts.map} +1 -1
- package/dist/{astro-shared-DBwINQav.js → astro-shared-CwBaV3Xu.js} +2 -2
- package/dist/{astro-shared-DBwINQav.js.map → astro-shared-CwBaV3Xu.js.map} +1 -1
- package/dist/astro.d.ts +2 -2
- package/dist/astro.js +1 -1
- package/dist/brand-model.js +4 -4
- package/dist/brand.d.ts +1 -1
- package/dist/brand.js +3 -3
- package/dist/{capabilities-ChgSs6bp.d.ts → capabilities-BNnXgvo5.d.ts} +3 -3
- package/dist/{capabilities-ChgSs6bp.d.ts.map → capabilities-BNnXgvo5.d.ts.map} +1 -1
- package/dist/{core-DD2giR6E.js → core-N07x1OaR.js} +1 -1
- package/dist/{core-DD2giR6E.js.map → core-N07x1OaR.js.map} +1 -1
- package/dist/development/{BrandMarkScene-BDdC7K5M.js → BrandMarkScene-B282kBA3.js} +4 -4
- package/dist/development/{BrandMarkScene-BDdC7K5M.js.map → BrandMarkScene-B282kBA3.js.map} +1 -1
- package/dist/development/astro-application.js +1 -1
- package/dist/development/astro-client.js +5 -5
- package/dist/development/{astro-context-OdlexHR4.js → astro-context-B9XKrz8c.js} +1 -1
- package/dist/development/{astro-context-OdlexHR4.js.map → astro-context-B9XKrz8c.js.map} +1 -1
- package/dist/development/astro-middleware.js +2 -2
- package/dist/development/{astro-request-DRKvDjsO.js → astro-request-C0eYQlmS.js} +2 -2
- package/dist/development/{astro-request-DRKvDjsO.js.map → astro-request-C0eYQlmS.js.map} +1 -1
- package/dist/development/astro-resumability-client.js +1 -1
- package/dist/development/astro-resumability-server.js +1 -1
- package/dist/development/astro-server.js +4 -4
- package/dist/development/{astro-shared-DBwINQav.js → astro-shared-CwBaV3Xu.js} +2 -2
- package/dist/development/{astro-shared-DBwINQav.js.map → astro-shared-CwBaV3Xu.js.map} +1 -1
- package/dist/development/astro.js +1 -1
- package/dist/development/brand-model.js +4 -4
- package/dist/development/brand.js +3 -3
- package/dist/development/{core-DrUd8x25.js → core-D1FWUMMC.js} +1 -1
- package/dist/development/{core-DrUd8x25.js.map → core-D1FWUMMC.js.map} +1 -1
- package/dist/development/{dom-CEVtlaav.js → dom-C1cVf5Vm.js} +4 -4
- package/dist/development/{dom-CEVtlaav.js.map → dom-C1cVf5Vm.js.map} +1 -1
- package/dist/development/floating.js +1 -1
- package/dist/development/hot.js +1 -1
- package/dist/{identity-ByJswZtF.js → development/identity-DWHH6jbd.js} +2 -2
- package/dist/development/{identity-B8wTFkyW.js.map → identity-DWHH6jbd.js.map} +1 -1
- package/dist/development/index.js +4 -4
- package/dist/development/{jsx-runtime-BGDPK50B.js → jsx-runtime-B2XxfA3E.js} +1 -1
- package/dist/development/{jsx-runtime-BGDPK50B.js.map → jsx-runtime-B2XxfA3E.js.map} +1 -1
- package/dist/development/jsx-runtime.js +1 -1
- package/dist/development/konva.js +4 -4
- package/dist/development/motion.js +1 -1
- package/dist/development/renderer.js +3 -3
- package/dist/development/{server-renderer-zAqEL1g1.js → server-renderer-B-L5tNg7.js} +4 -4
- package/dist/development/{server-renderer-zAqEL1g1.js.map → server-renderer-B-L5tNg7.js.map} +1 -1
- package/dist/development/server.js +1 -1
- package/dist/development/{src-CB7ruwRs.js → src-By4JY4qf.js} +2 -2
- package/dist/development/{src-CB7ruwRs.js.map → src-By4JY4qf.js.map} +1 -1
- package/dist/development/{three-CsZ6Od1C.js → three-F5D1OnE9.js} +4 -4
- package/dist/development/{three-CsZ6Od1C.js.map → three-F5D1OnE9.js.map} +1 -1
- package/dist/development/three.js +1 -1
- package/dist/{vite-WUiz1ju6.js → development/vite-BKxEE-ZO.js} +1 -1
- package/dist/development/{vite-WUiz1ju6.js.map → vite-BKxEE-ZO.js.map} +1 -1
- package/dist/development/vite.js +1 -1
- package/dist/{dom-DUpa3Sj2.js → dom-BbfEAPpR.js} +4 -4
- package/dist/{dom-DUpa3Sj2.js.map → dom-BbfEAPpR.js.map} +1 -1
- package/dist/floating.d.ts +1 -1
- package/dist/floating.js +1 -1
- package/dist/hot.d.ts +1 -1
- package/dist/hot.js +1 -1
- package/dist/{development/identity-B8wTFkyW.js → identity-wPtz6EJM.js} +2 -2
- package/dist/{identity-ByJswZtF.js.map → identity-wPtz6EJM.js.map} +1 -1
- package/dist/{index-DdA39aMv.d.ts → index-2AKIR8up.d.ts} +4 -4
- package/dist/{index-DdA39aMv.d.ts.map → index-2AKIR8up.d.ts.map} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -4
- package/dist/{jsx-runtime-BGDPK50B.js → jsx-runtime-B2XxfA3E.js} +1 -1
- package/dist/{jsx-runtime-BGDPK50B.js.map → jsx-runtime-B2XxfA3E.js.map} +1 -1
- package/dist/{jsx-runtime-CCvcEosg.d.ts → jsx-runtime-CjiJSx5m.d.ts} +2 -2
- package/dist/{jsx-runtime-CCvcEosg.d.ts.map → jsx-runtime-CjiJSx5m.d.ts.map} +1 -1
- package/dist/jsx-runtime.d.ts +1 -1
- package/dist/jsx-runtime.js +1 -1
- package/dist/konva.d.ts +3 -3
- package/dist/konva.js +4 -4
- package/dist/motion.d.ts +1 -1
- package/dist/motion.js +1 -1
- package/dist/renderer.d.ts +1 -1
- package/dist/renderer.js +3 -3
- package/dist/{server-renderer-D7CdyOMo.js → server-renderer-CjTOgG1b.js} +4 -4
- package/dist/{server-renderer-D7CdyOMo.js.map → server-renderer-CjTOgG1b.js.map} +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +1 -1
- package/dist/size.json +9 -9
- package/dist/{src-B2W_TA_X.js → src-BQlLP70K.js} +2 -2
- package/dist/{src-B2W_TA_X.js.map → src-BQlLP70K.js.map} +1 -1
- package/dist/{three-DcYxRXPW.js → three-DGOOlFXk.js} +4 -4
- package/dist/{three-DcYxRXPW.js.map → three-DGOOlFXk.js.map} +1 -1
- package/dist/three.d.ts +3 -3
- package/dist/three.js +1 -1
- package/dist/{development/vite-WUiz1ju6.js → vite-BKxEE-ZO.js} +1 -1
- package/dist/{vite-WUiz1ju6.js.map → vite-BKxEE-ZO.js.map} +1 -1
- package/dist/vite.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite-WUiz1ju6.js","names":[],"sources":["../src/compiler.ts","../src/compiler-hmr.ts","../src/vite.ts"],"sourcesContent":["import { decode } from \"html-entities\"\nimport type { SourceMap } from \"magic-string\"\nimport MagicString from \"magic-string\"\nimport type {\n\tExpression,\n\tJSXElement,\n\tJSXElementName,\n\tJSXFragment,\n\tNode,\n} from \"oxc-parser\"\nimport { parseSync, visitorKeys } from \"oxc-parser\"\n\ntype Part = string | Node\ntype FunctionNode = Extract<\n\tNode,\n\t{\n\t\ttype:\n\t\t\t| `FunctionDeclaration`\n\t\t\t| `FunctionExpression`\n\t\t\t| `ArrowFunctionExpression`\n\t}\n>\ntype JSXNode = JSXElement | JSXFragment\n\nconst decodeJsx = (value: string): string =>\n\tdecode(value, { level: `html4`, scope: `strict` })\n\n/** Match JSX's multiline whitespace rules without reprinting JavaScript. */\nfunction text(value: string): string {\n\tconst lines = value.split(/\\r\\n|\\n|\\r/)\n\tlet last = 0\n\tfor (let i = 0; i < lines.length; i++) if (/[^ \\t]/.test(lines[i])) last = i\n\treturn lines\n\t\t.map((line, i) => {\n\t\t\tline = line.replace(/\\t/g, ` `)\n\t\t\tif (i > 0) line = line.replace(/^ +/, ``)\n\t\t\tif (i < lines.length - 1) line = line.replace(/ +$/, ``)\n\t\t\treturn line && i < last ? `${line} ` : line\n\t\t})\n\t\t.join(``)\n}\n\nfunction eager(node: Node, allowJsx = false): boolean {\n\tif (node.type === `ParenthesizedExpression`)\n\t\treturn eager(node.expression, allowJsx)\n\treturn (\n\t\tnode.type === `Literal` ||\n\t\tnode.type === `FunctionExpression` ||\n\t\tnode.type === `ArrowFunctionExpression` ||\n\t\t(allowJsx && (node.type === `JSXElement` || node.type === `JSXFragment`)) ||\n\t\t(node.type === `TemplateLiteral` && node.expressions.length === 0)\n\t)\n}\n\nfunction containsSuspension(node: Node): boolean {\n\tif (isFunction(node)) return false\n\tif (node.type === `AwaitExpression` || node.type === `YieldExpression`)\n\t\treturn true\n\treturn visitorKeys[node.type].some((key) => {\n\t\tconst value = (node as unknown as Record<string, unknown>)[key]\n\t\treturn Array.isArray(value)\n\t\t\t? value.some((child) => child && containsSuspension(child))\n\t\t\t: Boolean(value && containsSuspension(value as Node))\n\t})\n}\n\nfunction isFunction(node: Node): node is FunctionNode {\n\treturn (\n\t\tnode.type === `FunctionDeclaration` ||\n\t\tnode.type === `FunctionExpression` ||\n\t\tnode.type === `ArrowFunctionExpression`\n\t)\n}\n\nexport function compile(\n\tcode: string,\n\tfilename: string,\n): { code: string; map: SourceMap } {\n\tconst parsed = parseSync(filename, code, {\n\t\tlang: `tsx`,\n\t\tpreserveParens: true,\n\t})\n\tif (parsed.errors.length) {\n\t\tconst error = parsed.errors[0]\n\t\tthrow new SyntaxError(\n\t\t\t[`${filename}: ${error.message}`, error.codeframe]\n\t\t\t\t.filter(Boolean)\n\t\t\t\t.join(`\\n`),\n\t\t)\n\t}\n\tconst output = new MagicString(code)\n\tconst parents = new WeakMap<Node, Node>()\n\tconst identifiers = new Set<string>()\n\tconst elements: JSXNode[] = []\n\tconst receivers: Node[] = []\n\tconst functions = new Set<Node>()\n\tfunction walk(node: Node, parent?: Node, outerFunction?: Node): void {\n\t\tif (parent) parents.set(node, parent)\n\t\toutput.addSourcemapLocation(node.start)\n\t\toutput.addSourcemapLocation(node.end)\n\t\tif (node.type === `Identifier` || node.type === `JSXIdentifier`)\n\t\t\tidentifiers.add(node.name)\n\t\tif (!outerFunction && isFunction(node)) outerFunction = node\n\t\tif (\n\t\t\tnode.type === `ThisExpression` ||\n\t\t\t(node.type === `JSXIdentifier` &&\n\t\t\t\tnode.name === `this` &&\n\t\t\t\t((parent?.type === `JSXMemberExpression` && parent.object === node) ||\n\t\t\t\t\t(parent?.type === `JSXOpeningElement` && parent.name === node)))\n\t\t)\n\t\t\treceivers.push(node)\n\t\tif (node.type === `JSXElement` || node.type === `JSXFragment`) {\n\t\t\telements.push(node)\n\t\t\tif (outerFunction) functions.add(outerFunction)\n\t\t}\n\t\tfor (const key of visitorKeys[node.type]) {\n\t\t\tconst value = (node as unknown as Record<string, unknown>)[key]\n\t\t\tif (Array.isArray(value)) {\n\t\t\t\tfor (const child of value) if (child) walk(child, node, outerFunction)\n\t\t\t} else if (value) walk(value as Node, node, outerFunction)\n\t\t}\n\t}\n\twalk(parsed.program)\n\tfunction uid(base: string): string {\n\t\tlet name = `_${base}`\n\t\tlet suffix = 1\n\t\twhile (identifiers.has(name)) name = `_${base}${++suffix}`\n\t\tidentifiers.add(name)\n\t\treturn name\n\t}\n\tconst create = uid(`spa`)\n\tconst merge = uid(`props`)\n\tconst captures = new Map<\n\t\tNode,\n\t\t{\n\t\t\tname: string\n\t\t\tscope: FunctionNode | undefined\n\t\t\troot: JSXNode\n\t\t}\n\t>()\n\tconst tagReceivers = new WeakMap<Node, string>()\n\tfor (const reference of receivers) {\n\t\tlet root: JSXNode | undefined\n\t\tlet ancestor = parents.get(reference)\n\t\t// Arrows inside a JSX tree share its receiver. A normal function starts\n\t\t// a separate receiver scope for any JSX it contains.\n\t\twhile (\n\t\t\tancestor &&\n\t\t\t(!isFunction(ancestor) || ancestor.type === `ArrowFunctionExpression`)\n\t\t) {\n\t\t\tif (ancestor.type === `JSXElement` || ancestor.type === `JSXFragment`)\n\t\t\t\troot = ancestor\n\t\t\tancestor = parents.get(ancestor)\n\t\t}\n\t\tif (!root) continue\n\t\tlet scope = parents.get(root)\n\t\twhile (scope && !isFunction(scope)) scope = parents.get(scope)\n\t\t// Default parameters run before declarations in the function body.\n\t\tif (scope && root.start < scope.body.start) scope = undefined\n\t\tconst enclosing = scope ?? root\n\t\tlet capture = captures.get(enclosing)\n\t\tif (!capture) {\n\t\t\tcapture = { name: uid(`self$`), scope, root }\n\t\t\tcaptures.set(enclosing, capture)\n\t\t}\n\t\tif (reference.type === `ThisExpression`)\n\t\t\toutput.update(reference.start, reference.end, capture.name)\n\t\telse tagReceivers.set(reference, capture.name)\n\t}\n\tconst join = (parts: Part[][], separator: string): Part[] =>\n\t\tparts.flatMap((part, i) => (i ? [separator, ...part] : part))\n\tconst expression = (node: Expression): Part[] =>\n\t\teager(node, true) ? [`(`, node, `)`] : [`() => (`, node, `)`]\n\tfunction tag(node: JSXElementName): string {\n\t\tif (node.type === `JSXNamespacedName`)\n\t\t\treturn JSON.stringify(`${node.namespace.name}:${node.name.name}`)\n\t\tif (node.type === `JSXMemberExpression`) {\n\t\t\tlet root = node.object\n\t\t\twhile (root.type === `JSXMemberExpression`) root = root.object\n\t\t\treturn (\n\t\t\t\t(tagReceivers.get(root) ?? root.name) + code.slice(root.end, node.end)\n\t\t\t)\n\t\t}\n\t\tif (tagReceivers.has(node)) return tagReceivers.get(node)!\n\t\treturn /^[a-z]/.test(node.name) || node.name.includes(`-`)\n\t\t\t? JSON.stringify(node.name)\n\t\t\t: node.name\n\t}\n\tfunction checkAttribute(node: Node, name: string): void {\n\t\tif (containsSuspension(node))\n\t\t\tthrow new SyntaxError(\n\t\t\t\t`${filename}: JSX attribute ${JSON.stringify(name)} cannot contain await or yield outside a nested function`,\n\t\t\t)\n\t}\n\t/** Rewrite syntax around untouched expression spans, including nested JSX. */\n\tfunction rewrite(node: JSXElement | JSXFragment, parts: Part[]): void {\n\t\tlet cursor = node.start\n\t\tlet replacement = ``\n\t\tfor (const part of parts) {\n\t\t\tif (typeof part === `string`) {\n\t\t\t\treplacement += part\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tif (cursor < part.start) output.update(cursor, part.start, replacement)\n\t\t\telse output.appendLeft(cursor, replacement)\n\t\t\tcursor = part.end\n\t\t\treplacement = ``\n\t\t}\n\t\t// Every JSX node ends with closing syntax after its last expression span.\n\t\toutput.update(cursor, node.end, replacement)\n\t}\n\tfor (const node of elements) {\n\t\tconst chunks: Part[][] = []\n\t\tlet properties: Part[][] = []\n\t\tconst flush = () => {\n\t\t\tif (properties.length) chunks.push([`{`, ...join(properties, `, `), `}`])\n\t\t\tproperties = []\n\t\t}\n\t\tif (node.type === `JSXElement`) {\n\t\t\tfor (const attribute of node.openingElement.attributes) {\n\t\t\t\tif (attribute.type === `JSXSpreadAttribute`) {\n\t\t\t\t\tcheckAttribute(attribute.argument, `spread`)\n\t\t\t\t\tflush()\n\t\t\t\t\tchunks.push([`() => (`, attribute.argument, `)`])\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\t\t\t\tconst attributeName =\n\t\t\t\t\tattribute.name.type === `JSXNamespacedName`\n\t\t\t\t\t\t? `${attribute.name.namespace.name}:${attribute.name.name.name}`\n\t\t\t\t\t\t: attribute.name.name\n\t\t\t\tconst key = JSON.stringify(attributeName)\n\t\t\t\tconst value = attribute.value\n\t\t\t\tif (!value) properties.push([`${key}: true`])\n\t\t\t\telse if (value.type === `Literal`)\n\t\t\t\t\tproperties.push([`${key}: ${JSON.stringify(decodeJsx(value.value))}`])\n\t\t\t\telse {\n\t\t\t\t\tconst expr =\n\t\t\t\t\t\tvalue.type === `JSXExpressionContainer` ? value.expression : value\n\t\t\t\t\tcheckAttribute(expr, attributeName)\n\t\t\t\t\tproperties.push(\n\t\t\t\t\t\teager(expr)\n\t\t\t\t\t\t\t? [`${key}: (`, expr, `)`]\n\t\t\t\t\t\t\t: [`get ${key}(){ return (`, expr, `); }`],\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tconst component =\n\t\t\tnode.type === `JSXElement` &&\n\t\t\t!tag(node.openingElement.name).startsWith(`\"`)\n\t\tconst children: Part[][] = []\n\t\tlet lazyChildren = false\n\t\tfor (const child of node.children) {\n\t\t\tif (child.type === `JSXText`) {\n\t\t\t\tconst value = text(decodeJsx(child.value))\n\t\t\t\tif (value) children.push([JSON.stringify(value)])\n\t\t\t} else if (child.type === `JSXElement` || child.type === `JSXFragment`)\n\t\t\t\tchildren.push([child])\n\t\t\telse if (child.type === `JSXExpressionContainer`) {\n\t\t\t\tif (child.expression.type !== `JSXEmptyExpression`) {\n\t\t\t\t\tcheckAttribute(child.expression, `children`)\n\t\t\t\t\tif (component) {\n\t\t\t\t\t\t// Component props expose their declared values, including callbacks.\n\t\t\t\t\t\tchildren.push([`(`, child.expression, `)`])\n\t\t\t\t\t\tif (!eager(child.expression, true)) lazyChildren = true\n\t\t\t\t\t} else children.push(expression(child.expression))\n\t\t\t\t}\n\t\t\t} else\n\t\t\t\tthrow new SyntaxError(`${filename}: JSX spread children are unsupported`)\n\t\t}\n\t\tif (children.length) {\n\t\t\tconst value =\n\t\t\t\tchildren.length === 1 ? children[0] : [`[`, ...join(children, `, `), `]`]\n\t\t\tproperties.push(\n\t\t\t\tlazyChildren\n\t\t\t\t\t? [`get children(){ return (`, ...value, `); }`]\n\t\t\t\t\t: [`children: `, ...value],\n\t\t\t)\n\t\t}\n\t\tflush()\n\t\tconst spreads =\n\t\t\tnode.type === `JSXElement` &&\n\t\t\tnode.openingElement.attributes.some(\n\t\t\t\t(attr) => attr.type === `JSXSpreadAttribute`,\n\t\t\t)\n\t\tconst props = spreads\n\t\t\t? [`${merge}(`, ...join(chunks, `, `), `)`]\n\t\t\t: (chunks[0] ?? [`{}`])\n\t\tconst capture = captures.get(node)\n\t\trewrite(node, [\n\t\t\tcapture ? `(() => { const ${capture.name} = this; return ` : ``,\n\t\t\t`${create}(${node.type === `JSXElement` ? tag(node.openingElement.name) : `null`}, `,\n\t\t\t...props,\n\t\t\t`)`,\n\t\t\tcapture ? `; })()` : ``,\n\t\t])\n\t}\n\tfor (const { name, scope, root } of captures.values()) {\n\t\tif (!scope) continue\n\t\tconst body = scope.body\n\t\tif (body.type !== `BlockStatement`) {\n\t\t\toutput.prependLeft(body.start, `{ const ${name} = this; return `)\n\t\t\toutput.appendLeft(body.end, `; }`)\n\t\t\tcontinue\n\t\t}\n\t\tlet position = body.start + 1\n\t\tif (parents.get(scope)?.type === `MethodDefinition`) {\n\t\t\tlet statement: Node = root\n\t\t\twhile (parents.get(statement) !== body) statement = parents.get(statement)!\n\t\t\tposition = statement.start\n\t\t} else {\n\t\t\tfor (const statement of body.body) {\n\t\t\t\tif (statement.type !== `ExpressionStatement` || !statement.directive)\n\t\t\t\t\tbreak\n\t\t\t\tposition = statement.end\n\t\t\t}\n\t\t}\n\t\toutput.prependLeft(position, `\\nconst ${name} = this;\\n`)\n\t}\n\tconst components = new Set<string>()\n\tfor (const fn of functions) {\n\t\tlet node = fn\n\t\tlet parent = parents.get(node)\n\t\twhile (parent?.type === `ParenthesizedExpression`) {\n\t\t\tnode = parent\n\t\t\tparent = parents.get(node)\n\t\t}\n\t\tif (fn.type === `FunctionDeclaration` && fn.id) components.add(fn.id.name)\n\t\telse if (\n\t\t\tparent?.type === `VariableDeclarator` &&\n\t\t\tparent.id.type === `Identifier`\n\t\t)\n\t\t\tcomponents.add(parent.id.name)\n\t\telse if (parent?.type === `ExportDefaultDeclaration`) {\n\t\t\tconst name = uid(`Component`)\n\t\t\tif (fn.type === `FunctionDeclaration`) {\n\t\t\t\t// Keep anonymous default function declarations hoisted.\n\t\t\t\tconst token = [\n\t\t\t\t\t...code\n\t\t\t\t\t\t.slice(fn.start, fn.body!.start)\n\t\t\t\t\t\t.matchAll(/\\/\\*[\\s\\S]*?\\*\\/|\\/\\/[^\\r\\n]*|\\bfunction\\b|\\*/g),\n\t\t\t\t].find((match) => match[0] === (fn.generator ? `*` : `function`))!\n\t\t\t\toutput.appendLeft(fn.start + token.index + token[0].length, ` ${name}`)\n\t\t\t} else {\n\t\t\t\t// Replace only keywords so intervening comments and annotations survive.\n\t\t\t\tconst prefix = code.slice(parent.start, node.start)\n\t\t\t\tfor (const token of prefix.matchAll(\n\t\t\t\t\t/\\/\\*[\\s\\S]*?\\*\\/|\\/\\/[^\\r\\n]*|\\b(?:export|default)\\b/g,\n\t\t\t\t)) {\n\t\t\t\t\tif (token[0] !== `export` && token[0] !== `default`) continue\n\t\t\t\t\toutput.update(\n\t\t\t\t\t\tparent.start + token.index,\n\t\t\t\t\t\tparent.start + token.index + token[0].length,\n\t\t\t\t\t\ttoken[0] === `export` ? `const ${name} =` : ``,\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\toutput.appendLeft(parent.end, `;\\nexport default ${name};`)\n\t\t\t}\n\t\t\tcomponents.add(name)\n\t\t}\n\t}\n\tif (elements.length) {\n\t\t// Keep hashbangs and directive prologues ahead of generated imports.\n\t\tlet position = parsed.program.hashbang?.end ?? 0\n\t\tfor (const statement of parsed.program.body) {\n\t\t\tif (statement.type !== `ExpressionStatement` || !statement.directive) break\n\t\t\tposition = statement.end\n\t\t}\n\t\toutput.appendLeft(\n\t\t\tposition,\n\t\t\t`\\nimport { jsx as ${create}, merge as ${merge} } from \"@atom.io/spa/jsx-runtime\";\\n`,\n\t\t)\n\t\tfor (const component of components)\n\t\t\toutput.append(`\\n;${component}.spa = true;`)\n\t}\n\treturn {\n\t\tcode: output.toString(),\n\t\tmap: output.generateMap({\n\t\t\tsource: filename,\n\t\t\tincludeContent: true,\n\t\t\thires: true,\n\t\t}),\n\t}\n}\n","import remapping from \"@jridgewell/remapping\"\nimport type { SourceMap } from \"magic-string\"\nimport MagicString from \"magic-string\"\nimport type { Node } from \"oxc-parser\"\nimport { parseSync, visitorKeys } from \"oxc-parser\"\n\nfunction walk(node: Node, visit: (node: Node) => void): void {\n\tvisit(node)\n\tfor (const key of visitorKeys[node.type]) {\n\t\tconst value = (node as unknown as Record<string, unknown>)[key]\n\t\tif (Array.isArray(value)) {\n\t\t\tfor (const child of value) if (child) walk(child, visit)\n\t\t} else if (value) walk(value as Node, visit)\n\t}\n}\nconst factories = new Set([\n\t`atom`,\n\t`atomFamily`,\n\t`selector`,\n\t`selectorFamily`,\n\t`transaction`,\n\t`timeline`,\n\t`timelineFamily`,\n\t`Silo`,\n])\nfunction stateIn(program: Node): boolean {\n\tconst names = new Set(factories)\n\twalk(program, (node) => {\n\t\tif (\n\t\t\tnode.type === `ImportDeclaration` &&\n\t\t\tnode.source.value.startsWith(`atom.io`)\n\t\t) {\n\t\t\tfor (const specifier of node.specifiers) {\n\t\t\t\tif (\n\t\t\t\t\tspecifier.type === `ImportSpecifier` &&\n\t\t\t\t\tspecifier.imported.type === `Identifier` &&\n\t\t\t\t\tfactories.has(specifier.imported.name)\n\t\t\t\t)\n\t\t\t\t\tnames.add(specifier.local.name)\n\t\t\t}\n\t\t}\n\t})\n\tlet found = false\n\twalk(program, (node) => {\n\t\tif (node.type === `CallExpression` || node.type === `NewExpression`) {\n\t\t\tconst callee = node.callee\n\t\t\tif (\n\t\t\t\t(callee.type === `Identifier` && names.has(callee.name)) ||\n\t\t\t\t(callee.type === `MemberExpression` &&\n\t\t\t\t\t!callee.computed &&\n\t\t\t\t\tcallee.property.type === `Identifier` &&\n\t\t\t\t\tfactories.has(callee.property.name))\n\t\t\t)\n\t\t\t\tfound = true\n\t\t}\n\t})\n\treturn found\n}\n\nexport function requiresModuleReload(code: string, filename: string): boolean {\n\tconst program = parseSync(filename, code, { lang: `tsx` }).program\n\treturn (\n\t\tstateIn(program) ||\n\t\tprogram.body.some((node) => {\n\t\t\tif (node.type === `ExportDefaultDeclaration`) return true\n\t\t\tif (node.type === `ExportAllDeclaration`) return node.exportKind !== `type`\n\t\t\tif (node.type !== `ExportNamedDeclaration` || node.exportKind === `type`)\n\t\t\t\treturn false\n\t\t\tif (node.declaration)\n\t\t\t\treturn ![\n\t\t\t\t\t`TSInterfaceDeclaration`,\n\t\t\t\t\t`TSTypeAliasDeclaration`,\n\t\t\t\t\t`TSDeclareFunction`,\n\t\t\t\t].includes(node.declaration.type)\n\t\t\treturn node.specifiers.some((specifier) => specifier.exportKind !== `type`)\n\t\t})\n\t)\n}\n\n/** Instrument only local component exports, composing both edits back to authored JSX. */\nexport function hotModule(\n\tcode: string,\n\tfilename: string,\n\toriginalMap: SourceMap,\n):\n\t| {\n\t\t\tcode: string\n\t\t\tmap: string\n\t\t\texports: string[]\n\t }\n\t| undefined {\n\tconst program = parseSync(filename, code, {\n\t\tlang: `tsx`,\n\t\tpreserveParens: true,\n\t}).program\n\tif (stateIn(program)) return\n\tconst components = new Set<string>()\n\tconst declarations = new Map<string, Node>()\n\tconst exports = new Map<string, string[]>()\n\tconst defaults: Extract<Node, { type: `ExportDefaultDeclaration` }>[] = []\n\tconst identifiers = new Set<string>()\n\twalk(program, (node) => {\n\t\tif (node.type === `Identifier`) identifiers.add(node.name)\n\t})\n\tconst branded = (node: Node): boolean => {\n\t\tif (\n\t\t\tnode.type !== `ExpressionStatement` ||\n\t\t\tnode.expression.type !== `AssignmentExpression`\n\t\t)\n\t\t\treturn false\n\t\tconst { left, right } = node.expression\n\t\tif (\n\t\t\tleft.type !== `MemberExpression` ||\n\t\t\tleft.computed ||\n\t\t\tleft.object.type !== `Identifier` ||\n\t\t\tleft.property.type !== `Identifier` ||\n\t\t\tleft.property.name !== `spa` ||\n\t\t\tright.type !== `Literal` ||\n\t\t\tright.value !== true\n\t\t)\n\t\t\treturn false\n\t\tcomponents.add(left.object.name)\n\t\treturn true\n\t}\n\tconst declaration = (node: Node): boolean => {\n\t\tif (node.type === `FunctionDeclaration` && node.id) {\n\t\t\tdeclarations.set(node.id.name, node)\n\t\t\treturn true\n\t\t}\n\t\tif (node.type === `VariableDeclaration`) {\n\t\t\tfor (const entry of node.declarations) {\n\t\t\t\tif (entry.id.type === `Identifier`) declarations.set(entry.id.name, node)\n\t\t\t\tlet unsafe = false\n\t\t\t\tlet init = entry.init\n\t\t\t\twhile (init?.type === `ParenthesizedExpression`) init = init.expression\n\t\t\t\tif (\n\t\t\t\t\tinit &&\n\t\t\t\t\tinit.type !== `ArrowFunctionExpression` &&\n\t\t\t\t\tinit.type !== `FunctionExpression`\n\t\t\t\t)\n\t\t\t\t\twalk(init, (child) => {\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t`CallExpression`,\n\t\t\t\t\t\t\t\t`NewExpression`,\n\t\t\t\t\t\t\t\t`TaggedTemplateExpression`,\n\t\t\t\t\t\t\t].includes(child.type)\n\t\t\t\t\t\t)\n\t\t\t\t\t\t\tunsafe = true\n\t\t\t\t\t})\n\t\t\t\tif (unsafe) return false\n\t\t\t}\n\t\t\treturn true\n\t\t}\n\t\treturn [\n\t\t\t`TSInterfaceDeclaration`,\n\t\t\t`TSTypeAliasDeclaration`,\n\t\t\t`TSDeclareFunction`,\n\t\t].includes(node.type)\n\t}\n\tconst add = (local: string, exported: string) => {\n\t\texports.set(local, [...(exports.get(local) ?? []), exported])\n\t}\n\tfor (const statement of program.body) {\n\t\tif (\n\t\t\tstatement.type === `ExportAllDeclaration` &&\n\t\t\tstatement.exportKind === `type`\n\t\t)\n\t\t\tcontinue\n\t\tif (\n\t\t\tstatement.type === `ImportDeclaration` ||\n\t\t\tstatement.type === `EmptyStatement`\n\t\t)\n\t\t\tcontinue\n\t\tif (\n\t\t\tstatement.type === `ExpressionStatement` &&\n\t\t\t(statement.directive || branded(statement))\n\t\t)\n\t\t\tcontinue\n\t\tif (statement.type === `ExportNamedDeclaration`) {\n\t\t\tif (statement.exportKind === `type`) continue\n\t\t\tif (statement.source) return\n\t\t\tif (statement.declaration) {\n\t\t\t\tconst node = statement.declaration\n\t\t\t\tif (!declaration(node)) return\n\t\t\t\tif (node.type === `FunctionDeclaration` && node.id)\n\t\t\t\t\tadd(node.id.name, node.id.name)\n\t\t\t\tif (node.type === `VariableDeclaration`)\n\t\t\t\t\tfor (const entry of node.declarations) {\n\t\t\t\t\t\tif (entry.id.type !== `Identifier`) return\n\t\t\t\t\t\tadd(entry.id.name, entry.id.name)\n\t\t\t\t\t}\n\t\t\t} else\n\t\t\t\tfor (const specifier of statement.specifiers) {\n\t\t\t\t\tif (specifier.exportKind === `type`) continue\n\t\t\t\t\tadd(\n\t\t\t\t\t\t// Local export names are identifiers; string names require a source above.\n\t\t\t\t\t\t(specifier.local as { name: string }).name,\n\t\t\t\t\t\tspecifier.exported.type === `Identifier`\n\t\t\t\t\t\t\t? specifier.exported.name\n\t\t\t\t\t\t\t: specifier.exported.value,\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t} else if (statement.type === `ExportDefaultDeclaration`) {\n\t\t\tconst node = statement.declaration\n\t\t\tif (node.type === `Identifier`) add(node.name, `default`)\n\t\t\telse if (node.type === `FunctionDeclaration` && node.id) {\n\t\t\t\tdeclaration(node)\n\t\t\t\tadd(node.id.name, `default`)\n\t\t\t} else return\n\t\t\tdefaults.push(statement)\n\t\t} else if (!declaration(statement)) return\n\t}\n\tif (\n\t\t!exports.size ||\n\t\t[...exports.keys()].some(\n\t\t\t(name) => !components.has(name) || !declarations.has(name),\n\t\t)\n\t)\n\t\treturn\n\tconst output = new MagicString(code)\n\tconst mutable = new Set<Node>()\n\tfor (const name of exports.keys()) {\n\t\tconst node = declarations.get(name)!\n\t\tif (\n\t\t\tnode.type === `VariableDeclaration` &&\n\t\t\tnode.kind === `const` &&\n\t\t\t!mutable.has(node)\n\t\t) {\n\t\t\toutput.update(node.start, node.start + 5, `let`)\n\t\t\tmutable.add(node)\n\t\t}\n\t}\n\tfor (const node of defaults) {\n\t\tconst value = node.declaration\n\t\tconst name =\n\t\t\tvalue.type === `Identifier`\n\t\t\t\t? value.name\n\t\t\t\t: (value as { id: { name: string } }).id.name\n\t\tconst prefix = code.slice(node.start, value.start)\n\t\tfor (const token of prefix.matchAll(\n\t\t\t/\\/\\*[\\s\\S]*?\\*\\/|\\/\\/[^\\r\\n]*|\\b(?:export|default)\\b/g,\n\t\t)) {\n\t\t\tif (token[0] === `export` || token[0] === `default`)\n\t\t\t\toutput.update(\n\t\t\t\t\tnode.start + token.index,\n\t\t\t\t\tnode.start + token.index + token[0].length,\n\t\t\t\t\tvalue.type === `Identifier` && token[0] === `export` ? `export {` : ``,\n\t\t\t\t)\n\t\t}\n\t\tif (value.type === `Identifier`)\n\t\t\toutput.appendLeft(value.end, ` as default }`)\n\t\telse output.appendLeft(node.end, `;\\nexport { ${name} as default };`)\n\t}\n\tconst uid = (base: string) => {\n\t\tlet name = base\n\t\twhile (identifiers.has(name)) name += `_`\n\t\tidentifiers.add(name)\n\t\treturn name\n\t}\n\tconst register = uid(`__spaHotRegister`),\n\t\trefresh = uid(`__spaHotRefresh`)\n\tlet position = program.hashbang?.end ?? 0\n\tfor (const statement of program.body) {\n\t\tif (statement.type !== `ExpressionStatement` || !statement.directive) break\n\t\tposition = statement.end\n\t}\n\toutput.appendLeft(\n\t\tposition,\n\t\t`\\nimport { registerComponent as ${register}, refresh as ${refresh} } from \"@atom.io/spa/hot\";\\n`,\n\t)\n\toutput.append(`\\nif (import.meta.hot) {\\n`)\n\tfor (const [name, aliases] of exports)\n\t\toutput.append(\n\t\t\t`${name} = ${register}(${JSON.stringify(filename)}, ${JSON.stringify(aliases.sort()[0])}, ${name});\\n`,\n\t\t)\n\toutput.append(\n\t\t`import.meta.hot.accept(() => ${refresh}(${JSON.stringify(filename)}));\\n}\\n`,\n\t)\n\treturn {\n\t\tcode: output.toString(),\n\t\tmap: remapping(\n\t\t\t[\n\t\t\t\toutput\n\t\t\t\t\t.generateMap({\n\t\t\t\t\t\tsource: filename,\n\t\t\t\t\t\tincludeContent: true,\n\t\t\t\t\t\thires: true,\n\t\t\t\t\t})\n\t\t\t\t\t.toString(),\n\t\t\t\toriginalMap.toString(),\n\t\t\t],\n\t\t\t() => null,\n\t\t).toString(),\n\t\texports: [...exports.values()].flat().sort(),\n\t}\n}\n","import type { Plugin } from \"vite\"\n\nimport { compile } from \"./compiler.ts\"\nimport { hotModule, requiresModuleReload } from \"./compiler-hmr.ts\"\n\nexport interface SpaPluginOptions {\n\tinclude?: RegExp\n}\nexport default function spa(options: SpaPluginOptions = {}): Plugin {\n\tconst include = options.include ?? /\\.[jt]sx$/\n\tlet development = false\n\tconst signatures = new Map<string, string>()\n\tconst matches = (id: string): boolean => {\n\t\tinclude.lastIndex = 0\n\t\treturn !id.includes(`/node_modules/`) && include.test(id.split(`?`)[0])\n\t}\n\treturn {\n\t\tname: `spa`,\n\t\tenforce: `pre`,\n\t\tconfigResolved(config) {\n\t\t\tdevelopment = config.command === `serve` && config.mode !== `test`\n\t\t},\n\t\tconfig() {\n\t\t\treturn {\n\t\t\t\tresolve: { dedupe: [`@atom.io/spa`, `atom.io`] },\n\t\t\t\toptimizeDeps: { exclude: [`@atom.io/spa`, `atom.io`] },\n\t\t\t}\n\t\t},\n\t\tconfigEnvironment: {\n\t\t\torder: `post`,\n\t\t\thandler(_name, config) {\n\t\t\t\t// Astro and its adapters force renderer entries into the optimizer.\n\t\t\t\t// Vite processes explicit includes even when their package is excluded.\n\t\t\t\t// Keep the renderer, hooks, and store in one unbundled module graph.\n\t\t\t\tif (config.optimizeDeps?.include) {\n\t\t\t\t\tconfig.optimizeDeps.include = config.optimizeDeps.include.filter(\n\t\t\t\t\t\t(id) => !/^(@atom\\.io\\/spa|atom\\.io)(\\/|$)/.test(id),\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t},\n\t\t},\n\t\ttransform(code, id, environment) {\n\t\t\tif (!matches(id)) return\n\t\t\tconst compiled = compile(code, id)\n\t\t\tif (development && !environment?.ssr) {\n\t\t\t\tconst key = id.split(`?`)[0]\n\t\t\t\tconst hot = hotModule(compiled.code, id, compiled.map)\n\t\t\t\tif (hot) {\n\t\t\t\t\tsignatures.set(key, hot.exports.join(`\\0`))\n\t\t\t\t\treturn { code: hot.code, map: hot.map }\n\t\t\t\t}\n\t\t\t\tif (id === key) signatures.delete(key)\n\t\t\t}\n\t\t\treturn compiled\n\t\t},\n\t\tasync handleHotUpdate({ server, file, read }) {\n\t\t\tif (matches(file)) {\n\t\t\t\ttry {\n\t\t\t\t\tconst compiled = compile(await read(), file)\n\t\t\t\t\tconst hot = development\n\t\t\t\t\t\t? hotModule(compiled.code, file, compiled.map)\n\t\t\t\t\t\t: undefined\n\t\t\t\t\tif (hot && signatures.get(file) === hot.exports.join(`\\0`)) return\n\t\t\t\t} catch (error) {\n\t\t\t\t\tserver.ws.send({\n\t\t\t\t\t\ttype: `error`,\n\t\t\t\t\t\terr: {\n\t\t\t\t\t\t\tmessage: String(error),\n\t\t\t\t\t\t\tstack: error instanceof Error ? (error.stack ?? ``) : ``,\n\t\t\t\t\t\t\tid: file,\n\t\t\t\t\t\t},\n\t\t\t\t\t})\n\t\t\t\t\treturn []\n\t\t\t\t}\n\t\t\t\tserver.ws.send({ type: `full-reload` })\n\t\t\t\treturn []\n\t\t\t}\n\t\t\tif (\n\t\t\t\t!file.includes(`/node_modules/`) &&\n\t\t\t\t/\\.[cm]?[jt]sx?$/.test(file) &&\n\t\t\t\trequiresModuleReload(await read(), file)\n\t\t\t) {\n\t\t\t\tserver.ws.send({ type: `full-reload` })\n\t\t\t\treturn []\n\t\t\t}\n\t\t},\n\t}\n}\n"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,SAAS,GAAG;IACrD,IAAI,KAAK;KACR,WAAW,IAAI,KAAK,IAAI,QAAQ,KAAK,IAAI,CAAC;KAC1C,OAAO;MAAE,MAAM,IAAI;MAAM,KAAK,IAAI;KAAI;IACvC;IACA,IAAI,OAAO,KAAK,WAAW,OAAO,GAAG;GACtC;GACA,OAAO;EACR;EACA,MAAM,gBAAgB,EAAE,QAAQ,MAAM,QAAQ;GAC7C,IAAI,QAAQ,IAAI,GAAG;IAClB,IAAI;KACH,MAAM,WAAW,QAAQ,MAAM,KAAK,GAAG,IAAI;KAC3C,MAAM,MAAM,cACT,UAAU,SAAS,MAAM,MAAM,SAAS,GAAG,IAC3C,KAAA;KACH,IAAI,OAAO,WAAW,IAAI,IAAI,MAAM,IAAI,QAAQ,KAAK,IAAI,GAAG;IAC7D,SAAS,OAAO;KACf,OAAO,GAAG,KAAK;MACd,MAAM;MACN,KAAK;OACJ,SAAS,OAAO,KAAK;OACrB,OAAO,iBAAiB,QAAS,MAAM,SAAS,KAAM;OACtD,IAAI;MACL;KACD,CAAC;KACD,OAAO,CAAC;IACT;IACA,OAAO,GAAG,KAAK,EAAE,MAAM,cAAc,CAAC;IACtC,OAAO,CAAC;GACT;GACA,IACC,CAAC,KAAK,SAAS,gBAAgB,KAC/B,kBAAkB,KAAK,IAAI,KAC3B,qBAAqB,MAAM,KAAK,GAAG,IAAI,GACtC;IACD,OAAO,GAAG,KAAK,EAAE,MAAM,cAAc,CAAC;IACtC,OAAO,CAAC;GACT;EACD;CACD;AACD"}
|
|
1
|
+
{"version":3,"file":"vite-BKxEE-ZO.js","names":[],"sources":["../src/compiler.ts","../src/compiler-hmr.ts","../src/vite.ts"],"sourcesContent":["import { decode } from \"html-entities\"\nimport type { SourceMap } from \"magic-string\"\nimport MagicString from \"magic-string\"\nimport type {\n\tExpression,\n\tJSXElement,\n\tJSXElementName,\n\tJSXFragment,\n\tNode,\n} from \"oxc-parser\"\nimport { parseSync, visitorKeys } from \"oxc-parser\"\n\ntype Part = string | Node\ntype FunctionNode = Extract<\n\tNode,\n\t{\n\t\ttype:\n\t\t\t| `FunctionDeclaration`\n\t\t\t| `FunctionExpression`\n\t\t\t| `ArrowFunctionExpression`\n\t}\n>\ntype JSXNode = JSXElement | JSXFragment\n\nconst decodeJsx = (value: string): string =>\n\tdecode(value, { level: `html4`, scope: `strict` })\n\n/** Match JSX's multiline whitespace rules without reprinting JavaScript. */\nfunction text(value: string): string {\n\tconst lines = value.split(/\\r\\n|\\n|\\r/)\n\tlet last = 0\n\tfor (let i = 0; i < lines.length; i++) if (/[^ \\t]/.test(lines[i])) last = i\n\treturn lines\n\t\t.map((line, i) => {\n\t\t\tline = line.replace(/\\t/g, ` `)\n\t\t\tif (i > 0) line = line.replace(/^ +/, ``)\n\t\t\tif (i < lines.length - 1) line = line.replace(/ +$/, ``)\n\t\t\treturn line && i < last ? `${line} ` : line\n\t\t})\n\t\t.join(``)\n}\n\nfunction eager(node: Node, allowJsx = false): boolean {\n\tif (node.type === `ParenthesizedExpression`)\n\t\treturn eager(node.expression, allowJsx)\n\treturn (\n\t\tnode.type === `Literal` ||\n\t\tnode.type === `FunctionExpression` ||\n\t\tnode.type === `ArrowFunctionExpression` ||\n\t\t(allowJsx && (node.type === `JSXElement` || node.type === `JSXFragment`)) ||\n\t\t(node.type === `TemplateLiteral` && node.expressions.length === 0)\n\t)\n}\n\nfunction containsSuspension(node: Node): boolean {\n\tif (isFunction(node)) return false\n\tif (node.type === `AwaitExpression` || node.type === `YieldExpression`)\n\t\treturn true\n\treturn visitorKeys[node.type].some((key) => {\n\t\tconst value = (node as unknown as Record<string, unknown>)[key]\n\t\treturn Array.isArray(value)\n\t\t\t? value.some((child) => child && containsSuspension(child))\n\t\t\t: Boolean(value && containsSuspension(value as Node))\n\t})\n}\n\nfunction isFunction(node: Node): node is FunctionNode {\n\treturn (\n\t\tnode.type === `FunctionDeclaration` ||\n\t\tnode.type === `FunctionExpression` ||\n\t\tnode.type === `ArrowFunctionExpression`\n\t)\n}\n\nexport function compile(\n\tcode: string,\n\tfilename: string,\n): { code: string; map: SourceMap } {\n\tconst parsed = parseSync(filename, code, {\n\t\tlang: `tsx`,\n\t\tpreserveParens: true,\n\t})\n\tif (parsed.errors.length) {\n\t\tconst error = parsed.errors[0]\n\t\tthrow new SyntaxError(\n\t\t\t[`${filename}: ${error.message}`, error.codeframe]\n\t\t\t\t.filter(Boolean)\n\t\t\t\t.join(`\\n`),\n\t\t)\n\t}\n\tconst output = new MagicString(code)\n\tconst parents = new WeakMap<Node, Node>()\n\tconst identifiers = new Set<string>()\n\tconst elements: JSXNode[] = []\n\tconst receivers: Node[] = []\n\tconst functions = new Set<Node>()\n\tfunction walk(node: Node, parent?: Node, outerFunction?: Node): void {\n\t\tif (parent) parents.set(node, parent)\n\t\toutput.addSourcemapLocation(node.start)\n\t\toutput.addSourcemapLocation(node.end)\n\t\tif (node.type === `Identifier` || node.type === `JSXIdentifier`)\n\t\t\tidentifiers.add(node.name)\n\t\tif (!outerFunction && isFunction(node)) outerFunction = node\n\t\tif (\n\t\t\tnode.type === `ThisExpression` ||\n\t\t\t(node.type === `JSXIdentifier` &&\n\t\t\t\tnode.name === `this` &&\n\t\t\t\t((parent?.type === `JSXMemberExpression` && parent.object === node) ||\n\t\t\t\t\t(parent?.type === `JSXOpeningElement` && parent.name === node)))\n\t\t)\n\t\t\treceivers.push(node)\n\t\tif (node.type === `JSXElement` || node.type === `JSXFragment`) {\n\t\t\telements.push(node)\n\t\t\tif (outerFunction) functions.add(outerFunction)\n\t\t}\n\t\tfor (const key of visitorKeys[node.type]) {\n\t\t\tconst value = (node as unknown as Record<string, unknown>)[key]\n\t\t\tif (Array.isArray(value)) {\n\t\t\t\tfor (const child of value) if (child) walk(child, node, outerFunction)\n\t\t\t} else if (value) walk(value as Node, node, outerFunction)\n\t\t}\n\t}\n\twalk(parsed.program)\n\tfunction uid(base: string): string {\n\t\tlet name = `_${base}`\n\t\tlet suffix = 1\n\t\twhile (identifiers.has(name)) name = `_${base}${++suffix}`\n\t\tidentifiers.add(name)\n\t\treturn name\n\t}\n\tconst create = uid(`spa`)\n\tconst merge = uid(`props`)\n\tconst captures = new Map<\n\t\tNode,\n\t\t{\n\t\t\tname: string\n\t\t\tscope: FunctionNode | undefined\n\t\t\troot: JSXNode\n\t\t}\n\t>()\n\tconst tagReceivers = new WeakMap<Node, string>()\n\tfor (const reference of receivers) {\n\t\tlet root: JSXNode | undefined\n\t\tlet ancestor = parents.get(reference)\n\t\t// Arrows inside a JSX tree share its receiver. A normal function starts\n\t\t// a separate receiver scope for any JSX it contains.\n\t\twhile (\n\t\t\tancestor &&\n\t\t\t(!isFunction(ancestor) || ancestor.type === `ArrowFunctionExpression`)\n\t\t) {\n\t\t\tif (ancestor.type === `JSXElement` || ancestor.type === `JSXFragment`)\n\t\t\t\troot = ancestor\n\t\t\tancestor = parents.get(ancestor)\n\t\t}\n\t\tif (!root) continue\n\t\tlet scope = parents.get(root)\n\t\twhile (scope && !isFunction(scope)) scope = parents.get(scope)\n\t\t// Default parameters run before declarations in the function body.\n\t\tif (scope && root.start < scope.body.start) scope = undefined\n\t\tconst enclosing = scope ?? root\n\t\tlet capture = captures.get(enclosing)\n\t\tif (!capture) {\n\t\t\tcapture = { name: uid(`self$`), scope, root }\n\t\t\tcaptures.set(enclosing, capture)\n\t\t}\n\t\tif (reference.type === `ThisExpression`)\n\t\t\toutput.update(reference.start, reference.end, capture.name)\n\t\telse tagReceivers.set(reference, capture.name)\n\t}\n\tconst join = (parts: Part[][], separator: string): Part[] =>\n\t\tparts.flatMap((part, i) => (i ? [separator, ...part] : part))\n\tconst expression = (node: Expression): Part[] =>\n\t\teager(node, true) ? [`(`, node, `)`] : [`() => (`, node, `)`]\n\tfunction tag(node: JSXElementName): string {\n\t\tif (node.type === `JSXNamespacedName`)\n\t\t\treturn JSON.stringify(`${node.namespace.name}:${node.name.name}`)\n\t\tif (node.type === `JSXMemberExpression`) {\n\t\t\tlet root = node.object\n\t\t\twhile (root.type === `JSXMemberExpression`) root = root.object\n\t\t\treturn (\n\t\t\t\t(tagReceivers.get(root) ?? root.name) + code.slice(root.end, node.end)\n\t\t\t)\n\t\t}\n\t\tif (tagReceivers.has(node)) return tagReceivers.get(node)!\n\t\treturn /^[a-z]/.test(node.name) || node.name.includes(`-`)\n\t\t\t? JSON.stringify(node.name)\n\t\t\t: node.name\n\t}\n\tfunction checkAttribute(node: Node, name: string): void {\n\t\tif (containsSuspension(node))\n\t\t\tthrow new SyntaxError(\n\t\t\t\t`${filename}: JSX attribute ${JSON.stringify(name)} cannot contain await or yield outside a nested function`,\n\t\t\t)\n\t}\n\t/** Rewrite syntax around untouched expression spans, including nested JSX. */\n\tfunction rewrite(node: JSXElement | JSXFragment, parts: Part[]): void {\n\t\tlet cursor = node.start\n\t\tlet replacement = ``\n\t\tfor (const part of parts) {\n\t\t\tif (typeof part === `string`) {\n\t\t\t\treplacement += part\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tif (cursor < part.start) output.update(cursor, part.start, replacement)\n\t\t\telse output.appendLeft(cursor, replacement)\n\t\t\tcursor = part.end\n\t\t\treplacement = ``\n\t\t}\n\t\t// Every JSX node ends with closing syntax after its last expression span.\n\t\toutput.update(cursor, node.end, replacement)\n\t}\n\tfor (const node of elements) {\n\t\tconst chunks: Part[][] = []\n\t\tlet properties: Part[][] = []\n\t\tconst flush = () => {\n\t\t\tif (properties.length) chunks.push([`{`, ...join(properties, `, `), `}`])\n\t\t\tproperties = []\n\t\t}\n\t\tif (node.type === `JSXElement`) {\n\t\t\tfor (const attribute of node.openingElement.attributes) {\n\t\t\t\tif (attribute.type === `JSXSpreadAttribute`) {\n\t\t\t\t\tcheckAttribute(attribute.argument, `spread`)\n\t\t\t\t\tflush()\n\t\t\t\t\tchunks.push([`() => (`, attribute.argument, `)`])\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\t\t\t\tconst attributeName =\n\t\t\t\t\tattribute.name.type === `JSXNamespacedName`\n\t\t\t\t\t\t? `${attribute.name.namespace.name}:${attribute.name.name.name}`\n\t\t\t\t\t\t: attribute.name.name\n\t\t\t\tconst key = JSON.stringify(attributeName)\n\t\t\t\tconst value = attribute.value\n\t\t\t\tif (!value) properties.push([`${key}: true`])\n\t\t\t\telse if (value.type === `Literal`)\n\t\t\t\t\tproperties.push([`${key}: ${JSON.stringify(decodeJsx(value.value))}`])\n\t\t\t\telse {\n\t\t\t\t\tconst expr =\n\t\t\t\t\t\tvalue.type === `JSXExpressionContainer` ? value.expression : value\n\t\t\t\t\tcheckAttribute(expr, attributeName)\n\t\t\t\t\tproperties.push(\n\t\t\t\t\t\teager(expr)\n\t\t\t\t\t\t\t? [`${key}: (`, expr, `)`]\n\t\t\t\t\t\t\t: [`get ${key}(){ return (`, expr, `); }`],\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tconst component =\n\t\t\tnode.type === `JSXElement` &&\n\t\t\t!tag(node.openingElement.name).startsWith(`\"`)\n\t\tconst children: Part[][] = []\n\t\tlet lazyChildren = false\n\t\tfor (const child of node.children) {\n\t\t\tif (child.type === `JSXText`) {\n\t\t\t\tconst value = text(decodeJsx(child.value))\n\t\t\t\tif (value) children.push([JSON.stringify(value)])\n\t\t\t} else if (child.type === `JSXElement` || child.type === `JSXFragment`)\n\t\t\t\tchildren.push([child])\n\t\t\telse if (child.type === `JSXExpressionContainer`) {\n\t\t\t\tif (child.expression.type !== `JSXEmptyExpression`) {\n\t\t\t\t\tcheckAttribute(child.expression, `children`)\n\t\t\t\t\tif (component) {\n\t\t\t\t\t\t// Component props expose their declared values, including callbacks.\n\t\t\t\t\t\tchildren.push([`(`, child.expression, `)`])\n\t\t\t\t\t\tif (!eager(child.expression, true)) lazyChildren = true\n\t\t\t\t\t} else children.push(expression(child.expression))\n\t\t\t\t}\n\t\t\t} else\n\t\t\t\tthrow new SyntaxError(`${filename}: JSX spread children are unsupported`)\n\t\t}\n\t\tif (children.length) {\n\t\t\tconst value =\n\t\t\t\tchildren.length === 1 ? children[0] : [`[`, ...join(children, `, `), `]`]\n\t\t\tproperties.push(\n\t\t\t\tlazyChildren\n\t\t\t\t\t? [`get children(){ return (`, ...value, `); }`]\n\t\t\t\t\t: [`children: `, ...value],\n\t\t\t)\n\t\t}\n\t\tflush()\n\t\tconst spreads =\n\t\t\tnode.type === `JSXElement` &&\n\t\t\tnode.openingElement.attributes.some(\n\t\t\t\t(attr) => attr.type === `JSXSpreadAttribute`,\n\t\t\t)\n\t\tconst props = spreads\n\t\t\t? [`${merge}(`, ...join(chunks, `, `), `)`]\n\t\t\t: (chunks[0] ?? [`{}`])\n\t\tconst capture = captures.get(node)\n\t\trewrite(node, [\n\t\t\tcapture ? `(() => { const ${capture.name} = this; return ` : ``,\n\t\t\t`${create}(${node.type === `JSXElement` ? tag(node.openingElement.name) : `null`}, `,\n\t\t\t...props,\n\t\t\t`)`,\n\t\t\tcapture ? `; })()` : ``,\n\t\t])\n\t}\n\tfor (const { name, scope, root } of captures.values()) {\n\t\tif (!scope) continue\n\t\tconst body = scope.body\n\t\tif (body.type !== `BlockStatement`) {\n\t\t\toutput.prependLeft(body.start, `{ const ${name} = this; return `)\n\t\t\toutput.appendLeft(body.end, `; }`)\n\t\t\tcontinue\n\t\t}\n\t\tlet position = body.start + 1\n\t\tif (parents.get(scope)?.type === `MethodDefinition`) {\n\t\t\tlet statement: Node = root\n\t\t\twhile (parents.get(statement) !== body) statement = parents.get(statement)!\n\t\t\tposition = statement.start\n\t\t} else {\n\t\t\tfor (const statement of body.body) {\n\t\t\t\tif (statement.type !== `ExpressionStatement` || !statement.directive)\n\t\t\t\t\tbreak\n\t\t\t\tposition = statement.end\n\t\t\t}\n\t\t}\n\t\toutput.prependLeft(position, `\\nconst ${name} = this;\\n`)\n\t}\n\tconst components = new Set<string>()\n\tfor (const fn of functions) {\n\t\tlet node = fn\n\t\tlet parent = parents.get(node)\n\t\twhile (parent?.type === `ParenthesizedExpression`) {\n\t\t\tnode = parent\n\t\t\tparent = parents.get(node)\n\t\t}\n\t\tif (fn.type === `FunctionDeclaration` && fn.id) components.add(fn.id.name)\n\t\telse if (\n\t\t\tparent?.type === `VariableDeclarator` &&\n\t\t\tparent.id.type === `Identifier`\n\t\t)\n\t\t\tcomponents.add(parent.id.name)\n\t\telse if (parent?.type === `ExportDefaultDeclaration`) {\n\t\t\tconst name = uid(`Component`)\n\t\t\tif (fn.type === `FunctionDeclaration`) {\n\t\t\t\t// Keep anonymous default function declarations hoisted.\n\t\t\t\tconst token = [\n\t\t\t\t\t...code\n\t\t\t\t\t\t.slice(fn.start, fn.body!.start)\n\t\t\t\t\t\t.matchAll(/\\/\\*[\\s\\S]*?\\*\\/|\\/\\/[^\\r\\n]*|\\bfunction\\b|\\*/g),\n\t\t\t\t].find((match) => match[0] === (fn.generator ? `*` : `function`))!\n\t\t\t\toutput.appendLeft(fn.start + token.index + token[0].length, ` ${name}`)\n\t\t\t} else {\n\t\t\t\t// Replace only keywords so intervening comments and annotations survive.\n\t\t\t\tconst prefix = code.slice(parent.start, node.start)\n\t\t\t\tfor (const token of prefix.matchAll(\n\t\t\t\t\t/\\/\\*[\\s\\S]*?\\*\\/|\\/\\/[^\\r\\n]*|\\b(?:export|default)\\b/g,\n\t\t\t\t)) {\n\t\t\t\t\tif (token[0] !== `export` && token[0] !== `default`) continue\n\t\t\t\t\toutput.update(\n\t\t\t\t\t\tparent.start + token.index,\n\t\t\t\t\t\tparent.start + token.index + token[0].length,\n\t\t\t\t\t\ttoken[0] === `export` ? `const ${name} =` : ``,\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\toutput.appendLeft(parent.end, `;\\nexport default ${name};`)\n\t\t\t}\n\t\t\tcomponents.add(name)\n\t\t}\n\t}\n\tif (elements.length) {\n\t\t// Keep hashbangs and directive prologues ahead of generated imports.\n\t\tlet position = parsed.program.hashbang?.end ?? 0\n\t\tfor (const statement of parsed.program.body) {\n\t\t\tif (statement.type !== `ExpressionStatement` || !statement.directive) break\n\t\t\tposition = statement.end\n\t\t}\n\t\toutput.appendLeft(\n\t\t\tposition,\n\t\t\t`\\nimport { jsx as ${create}, merge as ${merge} } from \"@atom.io/spa/jsx-runtime\";\\n`,\n\t\t)\n\t\tfor (const component of components)\n\t\t\toutput.append(`\\n;${component}.spa = true;`)\n\t}\n\treturn {\n\t\tcode: output.toString(),\n\t\tmap: output.generateMap({\n\t\t\tsource: filename,\n\t\t\tincludeContent: true,\n\t\t\thires: true,\n\t\t}),\n\t}\n}\n","import remapping from \"@jridgewell/remapping\"\nimport type { SourceMap } from \"magic-string\"\nimport MagicString from \"magic-string\"\nimport type { Node } from \"oxc-parser\"\nimport { parseSync, visitorKeys } from \"oxc-parser\"\n\nfunction walk(node: Node, visit: (node: Node) => void): void {\n\tvisit(node)\n\tfor (const key of visitorKeys[node.type]) {\n\t\tconst value = (node as unknown as Record<string, unknown>)[key]\n\t\tif (Array.isArray(value)) {\n\t\t\tfor (const child of value) if (child) walk(child, visit)\n\t\t} else if (value) walk(value as Node, visit)\n\t}\n}\nconst factories = new Set([\n\t`atom`,\n\t`atomFamily`,\n\t`selector`,\n\t`selectorFamily`,\n\t`transaction`,\n\t`timeline`,\n\t`timelineFamily`,\n\t`Silo`,\n])\nfunction stateIn(program: Node): boolean {\n\tconst names = new Set(factories)\n\twalk(program, (node) => {\n\t\tif (\n\t\t\tnode.type === `ImportDeclaration` &&\n\t\t\tnode.source.value.startsWith(`atom.io`)\n\t\t) {\n\t\t\tfor (const specifier of node.specifiers) {\n\t\t\t\tif (\n\t\t\t\t\tspecifier.type === `ImportSpecifier` &&\n\t\t\t\t\tspecifier.imported.type === `Identifier` &&\n\t\t\t\t\tfactories.has(specifier.imported.name)\n\t\t\t\t)\n\t\t\t\t\tnames.add(specifier.local.name)\n\t\t\t}\n\t\t}\n\t})\n\tlet found = false\n\twalk(program, (node) => {\n\t\tif (node.type === `CallExpression` || node.type === `NewExpression`) {\n\t\t\tconst callee = node.callee\n\t\t\tif (\n\t\t\t\t(callee.type === `Identifier` && names.has(callee.name)) ||\n\t\t\t\t(callee.type === `MemberExpression` &&\n\t\t\t\t\t!callee.computed &&\n\t\t\t\t\tcallee.property.type === `Identifier` &&\n\t\t\t\t\tfactories.has(callee.property.name))\n\t\t\t)\n\t\t\t\tfound = true\n\t\t}\n\t})\n\treturn found\n}\n\nexport function requiresModuleReload(code: string, filename: string): boolean {\n\tconst program = parseSync(filename, code, { lang: `tsx` }).program\n\treturn (\n\t\tstateIn(program) ||\n\t\tprogram.body.some((node) => {\n\t\t\tif (node.type === `ExportDefaultDeclaration`) return true\n\t\t\tif (node.type === `ExportAllDeclaration`) return node.exportKind !== `type`\n\t\t\tif (node.type !== `ExportNamedDeclaration` || node.exportKind === `type`)\n\t\t\t\treturn false\n\t\t\tif (node.declaration)\n\t\t\t\treturn ![\n\t\t\t\t\t`TSInterfaceDeclaration`,\n\t\t\t\t\t`TSTypeAliasDeclaration`,\n\t\t\t\t\t`TSDeclareFunction`,\n\t\t\t\t].includes(node.declaration.type)\n\t\t\treturn node.specifiers.some((specifier) => specifier.exportKind !== `type`)\n\t\t})\n\t)\n}\n\n/** Instrument only local component exports, composing both edits back to authored JSX. */\nexport function hotModule(\n\tcode: string,\n\tfilename: string,\n\toriginalMap: SourceMap,\n):\n\t| {\n\t\t\tcode: string\n\t\t\tmap: string\n\t\t\texports: string[]\n\t }\n\t| undefined {\n\tconst program = parseSync(filename, code, {\n\t\tlang: `tsx`,\n\t\tpreserveParens: true,\n\t}).program\n\tif (stateIn(program)) return\n\tconst components = new Set<string>()\n\tconst declarations = new Map<string, Node>()\n\tconst exports = new Map<string, string[]>()\n\tconst defaults: Extract<Node, { type: `ExportDefaultDeclaration` }>[] = []\n\tconst identifiers = new Set<string>()\n\twalk(program, (node) => {\n\t\tif (node.type === `Identifier`) identifiers.add(node.name)\n\t})\n\tconst branded = (node: Node): boolean => {\n\t\tif (\n\t\t\tnode.type !== `ExpressionStatement` ||\n\t\t\tnode.expression.type !== `AssignmentExpression`\n\t\t)\n\t\t\treturn false\n\t\tconst { left, right } = node.expression\n\t\tif (\n\t\t\tleft.type !== `MemberExpression` ||\n\t\t\tleft.computed ||\n\t\t\tleft.object.type !== `Identifier` ||\n\t\t\tleft.property.type !== `Identifier` ||\n\t\t\tleft.property.name !== `spa` ||\n\t\t\tright.type !== `Literal` ||\n\t\t\tright.value !== true\n\t\t)\n\t\t\treturn false\n\t\tcomponents.add(left.object.name)\n\t\treturn true\n\t}\n\tconst declaration = (node: Node): boolean => {\n\t\tif (node.type === `FunctionDeclaration` && node.id) {\n\t\t\tdeclarations.set(node.id.name, node)\n\t\t\treturn true\n\t\t}\n\t\tif (node.type === `VariableDeclaration`) {\n\t\t\tfor (const entry of node.declarations) {\n\t\t\t\tif (entry.id.type === `Identifier`) declarations.set(entry.id.name, node)\n\t\t\t\tlet unsafe = false\n\t\t\t\tlet init = entry.init\n\t\t\t\twhile (init?.type === `ParenthesizedExpression`) init = init.expression\n\t\t\t\tif (\n\t\t\t\t\tinit &&\n\t\t\t\t\tinit.type !== `ArrowFunctionExpression` &&\n\t\t\t\t\tinit.type !== `FunctionExpression`\n\t\t\t\t)\n\t\t\t\t\twalk(init, (child) => {\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t`CallExpression`,\n\t\t\t\t\t\t\t\t`NewExpression`,\n\t\t\t\t\t\t\t\t`TaggedTemplateExpression`,\n\t\t\t\t\t\t\t].includes(child.type)\n\t\t\t\t\t\t)\n\t\t\t\t\t\t\tunsafe = true\n\t\t\t\t\t})\n\t\t\t\tif (unsafe) return false\n\t\t\t}\n\t\t\treturn true\n\t\t}\n\t\treturn [\n\t\t\t`TSInterfaceDeclaration`,\n\t\t\t`TSTypeAliasDeclaration`,\n\t\t\t`TSDeclareFunction`,\n\t\t].includes(node.type)\n\t}\n\tconst add = (local: string, exported: string) => {\n\t\texports.set(local, [...(exports.get(local) ?? []), exported])\n\t}\n\tfor (const statement of program.body) {\n\t\tif (\n\t\t\tstatement.type === `ExportAllDeclaration` &&\n\t\t\tstatement.exportKind === `type`\n\t\t)\n\t\t\tcontinue\n\t\tif (\n\t\t\tstatement.type === `ImportDeclaration` ||\n\t\t\tstatement.type === `EmptyStatement`\n\t\t)\n\t\t\tcontinue\n\t\tif (\n\t\t\tstatement.type === `ExpressionStatement` &&\n\t\t\t(statement.directive || branded(statement))\n\t\t)\n\t\t\tcontinue\n\t\tif (statement.type === `ExportNamedDeclaration`) {\n\t\t\tif (statement.exportKind === `type`) continue\n\t\t\tif (statement.source) return\n\t\t\tif (statement.declaration) {\n\t\t\t\tconst node = statement.declaration\n\t\t\t\tif (!declaration(node)) return\n\t\t\t\tif (node.type === `FunctionDeclaration` && node.id)\n\t\t\t\t\tadd(node.id.name, node.id.name)\n\t\t\t\tif (node.type === `VariableDeclaration`)\n\t\t\t\t\tfor (const entry of node.declarations) {\n\t\t\t\t\t\tif (entry.id.type !== `Identifier`) return\n\t\t\t\t\t\tadd(entry.id.name, entry.id.name)\n\t\t\t\t\t}\n\t\t\t} else\n\t\t\t\tfor (const specifier of statement.specifiers) {\n\t\t\t\t\tif (specifier.exportKind === `type`) continue\n\t\t\t\t\tadd(\n\t\t\t\t\t\t// Local export names are identifiers; string names require a source above.\n\t\t\t\t\t\t(specifier.local as { name: string }).name,\n\t\t\t\t\t\tspecifier.exported.type === `Identifier`\n\t\t\t\t\t\t\t? specifier.exported.name\n\t\t\t\t\t\t\t: specifier.exported.value,\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t} else if (statement.type === `ExportDefaultDeclaration`) {\n\t\t\tconst node = statement.declaration\n\t\t\tif (node.type === `Identifier`) add(node.name, `default`)\n\t\t\telse if (node.type === `FunctionDeclaration` && node.id) {\n\t\t\t\tdeclaration(node)\n\t\t\t\tadd(node.id.name, `default`)\n\t\t\t} else return\n\t\t\tdefaults.push(statement)\n\t\t} else if (!declaration(statement)) return\n\t}\n\tif (\n\t\t!exports.size ||\n\t\t[...exports.keys()].some(\n\t\t\t(name) => !components.has(name) || !declarations.has(name),\n\t\t)\n\t)\n\t\treturn\n\tconst output = new MagicString(code)\n\tconst mutable = new Set<Node>()\n\tfor (const name of exports.keys()) {\n\t\tconst node = declarations.get(name)!\n\t\tif (\n\t\t\tnode.type === `VariableDeclaration` &&\n\t\t\tnode.kind === `const` &&\n\t\t\t!mutable.has(node)\n\t\t) {\n\t\t\toutput.update(node.start, node.start + 5, `let`)\n\t\t\tmutable.add(node)\n\t\t}\n\t}\n\tfor (const node of defaults) {\n\t\tconst value = node.declaration\n\t\tconst name =\n\t\t\tvalue.type === `Identifier`\n\t\t\t\t? value.name\n\t\t\t\t: (value as { id: { name: string } }).id.name\n\t\tconst prefix = code.slice(node.start, value.start)\n\t\tfor (const token of prefix.matchAll(\n\t\t\t/\\/\\*[\\s\\S]*?\\*\\/|\\/\\/[^\\r\\n]*|\\b(?:export|default)\\b/g,\n\t\t)) {\n\t\t\tif (token[0] === `export` || token[0] === `default`)\n\t\t\t\toutput.update(\n\t\t\t\t\tnode.start + token.index,\n\t\t\t\t\tnode.start + token.index + token[0].length,\n\t\t\t\t\tvalue.type === `Identifier` && token[0] === `export` ? `export {` : ``,\n\t\t\t\t)\n\t\t}\n\t\tif (value.type === `Identifier`)\n\t\t\toutput.appendLeft(value.end, ` as default }`)\n\t\telse output.appendLeft(node.end, `;\\nexport { ${name} as default };`)\n\t}\n\tconst uid = (base: string) => {\n\t\tlet name = base\n\t\twhile (identifiers.has(name)) name += `_`\n\t\tidentifiers.add(name)\n\t\treturn name\n\t}\n\tconst register = uid(`__spaHotRegister`),\n\t\trefresh = uid(`__spaHotRefresh`)\n\tlet position = program.hashbang?.end ?? 0\n\tfor (const statement of program.body) {\n\t\tif (statement.type !== `ExpressionStatement` || !statement.directive) break\n\t\tposition = statement.end\n\t}\n\toutput.appendLeft(\n\t\tposition,\n\t\t`\\nimport { registerComponent as ${register}, refresh as ${refresh} } from \"@atom.io/spa/hot\";\\n`,\n\t)\n\toutput.append(`\\nif (import.meta.hot) {\\n`)\n\tfor (const [name, aliases] of exports)\n\t\toutput.append(\n\t\t\t`${name} = ${register}(${JSON.stringify(filename)}, ${JSON.stringify(aliases.sort()[0])}, ${name});\\n`,\n\t\t)\n\toutput.append(\n\t\t`import.meta.hot.accept(() => ${refresh}(${JSON.stringify(filename)}));\\n}\\n`,\n\t)\n\treturn {\n\t\tcode: output.toString(),\n\t\tmap: remapping(\n\t\t\t[\n\t\t\t\toutput\n\t\t\t\t\t.generateMap({\n\t\t\t\t\t\tsource: filename,\n\t\t\t\t\t\tincludeContent: true,\n\t\t\t\t\t\thires: true,\n\t\t\t\t\t})\n\t\t\t\t\t.toString(),\n\t\t\t\toriginalMap.toString(),\n\t\t\t],\n\t\t\t() => null,\n\t\t).toString(),\n\t\texports: [...exports.values()].flat().sort(),\n\t}\n}\n","import type { Plugin } from \"vite\"\n\nimport { compile } from \"./compiler.ts\"\nimport { hotModule, requiresModuleReload } from \"./compiler-hmr.ts\"\n\nexport interface SpaPluginOptions {\n\tinclude?: RegExp\n}\nexport default function spa(options: SpaPluginOptions = {}): Plugin {\n\tconst include = options.include ?? /\\.[jt]sx$/\n\tlet development = false\n\tconst signatures = new Map<string, string>()\n\tconst matches = (id: string): boolean => {\n\t\tinclude.lastIndex = 0\n\t\treturn !id.includes(`/node_modules/`) && include.test(id.split(`?`)[0])\n\t}\n\treturn {\n\t\tname: `spa`,\n\t\tenforce: `pre`,\n\t\tconfigResolved(config) {\n\t\t\tdevelopment = config.command === `serve` && config.mode !== `test`\n\t\t},\n\t\tconfig() {\n\t\t\treturn {\n\t\t\t\tresolve: { dedupe: [`@atom.io/spa`, `atom.io`] },\n\t\t\t\toptimizeDeps: { exclude: [`@atom.io/spa`, `atom.io`] },\n\t\t\t}\n\t\t},\n\t\tconfigEnvironment: {\n\t\t\torder: `post`,\n\t\t\thandler(_name, config) {\n\t\t\t\t// Astro and its adapters force renderer entries into the optimizer.\n\t\t\t\t// Vite processes explicit includes even when their package is excluded.\n\t\t\t\t// Keep the renderer, hooks, and store in one unbundled module graph.\n\t\t\t\tif (config.optimizeDeps?.include) {\n\t\t\t\t\tconfig.optimizeDeps.include = config.optimizeDeps.include.filter(\n\t\t\t\t\t\t(id) => !/^(@atom\\.io\\/spa|atom\\.io)(\\/|$)/.test(id),\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t},\n\t\t},\n\t\ttransform(code, id, environment) {\n\t\t\tif (!matches(id)) return\n\t\t\tconst compiled = compile(code, id)\n\t\t\tif (development && !environment?.ssr) {\n\t\t\t\tconst key = id.split(`?`)[0]\n\t\t\t\tconst hot = hotModule(compiled.code, id, compiled.map)\n\t\t\t\tif (hot) {\n\t\t\t\t\tsignatures.set(key, hot.exports.join(`\\0`))\n\t\t\t\t\treturn { code: hot.code, map: hot.map }\n\t\t\t\t}\n\t\t\t\tif (id === key) signatures.delete(key)\n\t\t\t}\n\t\t\treturn compiled\n\t\t},\n\t\tasync handleHotUpdate({ server, file, read }) {\n\t\t\tif (matches(file)) {\n\t\t\t\ttry {\n\t\t\t\t\tconst compiled = compile(await read(), file)\n\t\t\t\t\tconst hot = development\n\t\t\t\t\t\t? hotModule(compiled.code, file, compiled.map)\n\t\t\t\t\t\t: undefined\n\t\t\t\t\tif (hot && signatures.get(file) === hot.exports.join(`\\0`)) return\n\t\t\t\t} catch (error) {\n\t\t\t\t\tserver.ws.send({\n\t\t\t\t\t\ttype: `error`,\n\t\t\t\t\t\terr: {\n\t\t\t\t\t\t\tmessage: String(error),\n\t\t\t\t\t\t\tstack: error instanceof Error ? (error.stack ?? ``) : ``,\n\t\t\t\t\t\t\tid: file,\n\t\t\t\t\t\t},\n\t\t\t\t\t})\n\t\t\t\t\treturn []\n\t\t\t\t}\n\t\t\t\tserver.ws.send({ type: `full-reload` })\n\t\t\t\treturn []\n\t\t\t}\n\t\t\tif (\n\t\t\t\t!file.includes(`/node_modules/`) &&\n\t\t\t\t/\\.[cm]?[jt]sx?$/.test(file) &&\n\t\t\t\trequiresModuleReload(await read(), file)\n\t\t\t)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AAM,MAAM,GAAG,MAAM,GAAG,CAAC,CAAC;IAC1B,MAAM,MAAM,UAAU,SAAS,MAAM,IAAI,SAAS,GAAG;IACrD,IAAI,KAAK;KACR,WAAW,IAAI,KAAK,IAAI,QAAQ,KAAK,IAAI,CAAC;KAC1C,OAAO;MAAE,MAAM,IAAI;MAAM,KAAK,IAAI;KAAI;IACvC;IACA,IAAI,OAAO,KAAK,WAAW,OAAO,GAAG;GACtC;GACA,OAAO;EACR;EACA,MAAM,gBAAgB,EAAE,QAAQ,MAAM,QAAQ;GAC7C,IAAI,QAAQ,IAAI,GAAG;IAClB,IAAI;KACH,MAAM,WAAW,QAAQ,MAAM,KAAK,GAAG,IAAI;KAC3C,MAAM,MAAM,cACT,UAAU,SAAS,MAAM,MAAM,SAAS,GAAG,IAC3C,KAAA;KACH,IAAI,OAAO,WAAW,IAAI,IAAI,MAAM,IAAI,QAAQ,KAAK,IAAI,GAAG;IAC7D,SAAS,OAAO;KACf,OAAO,GAAG,KAAK;MACd,MAAM;MACN,KAAK;OACJ,SAAS,OAAO,KAAK;OACrB,OAAO,iBAAiB,QAAS,MAAM,SAAS,KAAM;OACtD,IAAI;MACL;KACD,CAAC;KACD,OAAO,CAAC;IACT;IACA,OAAO,GAAG,KAAK,EAAE,MAAM,cAAc,CAAC;IACtC,OAAO,CAAC;GACT;GACA,IACC,CAAC,KAAK,SAAS,gBAAgB,KAC/B,kBAAkB,KAAK,IAAI,KAC3B,qBAAqB,MAAM,KAAK,GAAG,IAAI,GACtC;IACD,OAAO,GAAG,KAAK,EAAE,MAAM,cAAc,CAAC;IACtC,OAAO,CAAC;GACT;EACD;CACD;AACD"}
|
package/dist/vite.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./vite-
|
|
1
|
+
export { t as default } from "./vite-BKxEE-ZO.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atom.io/spa",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "An atom.io-driven JSX renderer.",
|
|
5
5
|
"homepage": "https://atom.io.fyi/docs/spa",
|
|
6
6
|
"repository": {
|
|
@@ -140,9 +140,9 @@
|
|
|
140
140
|
"@tsdown/css": "0.23.7",
|
|
141
141
|
"@types/node": "26.6.6",
|
|
142
142
|
"@types/three": "0.187.0",
|
|
143
|
-
"@vitest/coverage-v8": "5.1.
|
|
144
|
-
"astro": "7.4.
|
|
145
|
-
"atom.io": "0.54.
|
|
143
|
+
"@vitest/coverage-v8": "5.1.1",
|
|
144
|
+
"astro": "7.4.13",
|
|
145
|
+
"atom.io": "0.54.11",
|
|
146
146
|
"breakage": "0.10.2",
|
|
147
147
|
"esbuild": "0.28.2",
|
|
148
148
|
"eslint": "10.15.0",
|
|
@@ -151,13 +151,13 @@
|
|
|
151
151
|
"motion": "14.14.0",
|
|
152
152
|
"playwright": "1.65.1",
|
|
153
153
|
"preact": "11.2.0",
|
|
154
|
-
"resumability": "0.0.
|
|
155
|
-
"rolldown": "1.3.
|
|
154
|
+
"resumability": "0.0.3",
|
|
155
|
+
"rolldown": "1.3.3",
|
|
156
156
|
"three": "0.187.0",
|
|
157
157
|
"tsdown": "0.23.7",
|
|
158
158
|
"typescript": "7.0.2",
|
|
159
159
|
"vite": "8.3.8",
|
|
160
|
-
"vitest": "5.1.
|
|
160
|
+
"vitest": "5.1.1"
|
|
161
161
|
},
|
|
162
162
|
"peerDependencies": {
|
|
163
163
|
"@floating-ui/dom": "^1.8.0",
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
"atom.io": "^0.54.4",
|
|
167
167
|
"konva": "^10.9.1",
|
|
168
168
|
"motion": "^14.9.0",
|
|
169
|
-
"resumability": "
|
|
169
|
+
"resumability": ">=0.0.2 <=0.0.3",
|
|
170
170
|
"three": "^0.187.0",
|
|
171
171
|
"vite": "^8.3.5"
|
|
172
172
|
},
|