mirror of
https://github.com/outline/outline.git
synced 2026-11-26 23:50:14 +03:00
chore: babel -> swc (#12821)
* chore: babel -> swc * Add ls guard * PR feedback
This commit is contained in:
1 parent
e8070cd87a
commit
ec3200c7d2
55 files changed
+1387
-764
No files matched your search
@@ -78,7 +78,7 @@ export function rewriteAttachmentReferences(
|
||||
|
||||
const transformAttachmentNode = (node: Node): Node => {
|
||||
const json = node.toJSON() as ProsemirrorData;
|
||||
const attrs = { ...(json.attrs ?? {}) };
|
||||
const attrs = { ...json.attrs };
|
||||
|
||||
if (node.type.name === "attachment") {
|
||||
const href = attrs.href as string | undefined;
|
||||
|
||||
Reference in new issue
Block a user