You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/playgrounds/basic/compile.js

7 lines
194 B

import { readFileSync } from 'node:fs';
import { compile } from '../../packages/svelte/src/compiler/index.js';
const code = readFileSync('src/App.svelte', 'utf8');
console.log(compile(code));