File tree Expand file tree Collapse file tree 4 files changed +7
-3
lines changed
apps/svelte.dev/src/lib/tutorial/adapters/rollup Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ export async function create(): Promise<Adapter> {
3333 . map ( ( f ) => ( { ...f , name : f . name . slice ( 9 ) } ) ) ,
3434 {
3535 // TODO support Tailwind here?
36+ runes : true
3637 }
3738 ) ;
3839 }
Original file line number Diff line number Diff line change 11import type { BundleResult } from './public' ;
2+ import type { BundleOptions } from './workers/workers' ;
23import type { File } from './Workspace.svelte' ;
34
45let uid = 1 ;
@@ -46,7 +47,7 @@ export default class Bundler {
4647 this . #worker. postMessage ( { type : 'init' , svelte_version } ) ;
4748 }
4849
49- bundle ( files : File [ ] , options : { tailwind ?: boolean } ) {
50+ bundle ( files : File [ ] , options : BundleOptions ) {
5051 this . #worker. postMessage ( {
5152 uid,
5253 type : 'bundle' ,
Original file line number Diff line number Diff line change @@ -290,7 +290,8 @@ async function get_bundle(
290290 const compilerOptions : any = {
291291 filename : name + '.svelte' ,
292292 generate : Number ( svelte . VERSION . split ( '.' ) [ 0 ] ) >= 5 ? 'client' : 'dom' ,
293- dev : true
293+ dev : true ,
294+ runes : options . runes
294295 } ;
295296
296297 if ( can_use_experimental_async ) {
Original file line number Diff line number Diff line change @@ -50,7 +50,8 @@ export interface MigrateOutput {
5050}
5151
5252export interface BundleOptions {
53- tailwind : boolean ;
53+ tailwind ?: boolean ;
54+ runes ?: boolean ;
5455}
5556
5657export type BundleMessageData = {
You can’t perform that action at this time.
0 commit comments