Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export async function create(): Promise<Adapter> {
.map((f) => ({ ...f, name: f.name.slice(9) })),
{
// TODO support Tailwind here?
runes: true
}
);
}
Expand Down
3 changes: 2 additions & 1 deletion packages/repl/src/lib/Bundler.svelte.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { BundleResult } from './public';
import type { BundleOptions } from './workers/workers';
import type { File } from './Workspace.svelte';

let uid = 1;
Expand Down Expand Up @@ -46,7 +47,7 @@ export default class Bundler {
this.#worker.postMessage({ type: 'init', svelte_version });
}

bundle(files: File[], options: { tailwind?: boolean }) {
bundle(files: File[], options: BundleOptions) {
this.#worker.postMessage({
uid,
type: 'bundle',
Expand Down
3 changes: 2 additions & 1 deletion packages/repl/src/lib/workers/bundler/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ async function get_bundle(
const compilerOptions: any = {
filename: name + '.svelte',
generate: Number(svelte.VERSION.split('.')[0]) >= 5 ? 'client' : 'dom',
dev: true
dev: true,
runes: options.runes
};

if (can_use_experimental_async) {
Expand Down
3 changes: 2 additions & 1 deletion packages/repl/src/lib/workers/workers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ export interface MigrateOutput {
}

export interface BundleOptions {
tailwind: boolean;
tailwind?: boolean;
runes?: boolean;
}

export type BundleMessageData = {
Expand Down