1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2025-07-01 12:22:15 +02:00

Merge branch 'main' into dev-docs

This commit is contained in:
2023-10-09 13:52:03 +02:00
12 changed files with 668 additions and 579 deletions

View File

@ -25,7 +25,7 @@ function toDDE(file, out){
const name= "dde";
echo(`\n ${out} (${file} → globalThis.${name})\n`);
let content= s.cat(file).toString().split("export {");
let content= s.cat(file).toString().split(/export ?{/);
content.splice(1, 0, `\nglobalThis.${name}= {`);
content[2]= content[2].replace(/^(\t*)(.*) as ([^,\n]*)(,?)$/mg, "$1$3: $2$4");
s.echo([