File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 24
24
export let injectedCSS = ' ' ;
25
25
export let theme: ' light' | ' dark' ;
26
26
/** A store containing the current bundle result. Takes precedence over REPL context, if set */
27
- export let bundle: Writable <Bundle > | undefined = undefined ;
27
+ export let bundle: Writable <Bundle | null > | undefined = undefined ;
28
28
/** Called everytime a log is pushed. If this is set, the built-in console coming with the Viewer isn't shown */
29
29
export let onLog: ((logs : Log []) => void ) | undefined = undefined ;
30
30
31
31
const context = get_repl_context ();
32
- bundle = bundle ?? context ? .bundle ;
32
+ bundle = bundle ?? context .bundle ;
33
33
34
34
let logs: Log [] = [];
35
35
let log_group_stack: Log [][] = [];
98
98
99
99
$ : if (ready ) proxy ?.iframe_command (' set_theme' , { theme });
100
100
101
- async function apply_bundle($bundle : Bundle | null ) {
101
+ async function apply_bundle($bundle : Bundle | null | undefined ) {
102
102
if (! $bundle ) return ;
103
103
104
104
try {
Original file line number Diff line number Diff line change @@ -19,8 +19,7 @@ const plugin: Plugin = {
19
19
ecmaVersion : 'latest'
20
20
} ) ;
21
21
22
- /** @type {string[] } */
23
- const requires = [ ] ;
22
+ const requires : string [ ] = [ ] ;
24
23
25
24
walk ( ast as Node , null , {
26
25
CallExpression : ( node ) => {
You can’t perform that action at this time.
0 commit comments