File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 11import * as fs from 'node:fs' ;
22import * as path from 'node:path' ;
3- import glob from 'tiny-glob/sync' ;
4- import colors from 'kleur' ;
3+
54import { assert } from 'vitest' ;
5+ import colors from 'kleur' ;
66import { compile } from 'svelte/compiler' ;
77import { fileURLToPath } from 'node:url' ;
8+ import glob from 'tiny-glob/sync' ;
89
910export function try_load_json ( file ) {
1011 try {
@@ -158,8 +159,8 @@ export function create_loader(compileOptions, cwd) {
158159 )
159160 . replace (
160161 / ^ i m p o r t ( \w + , ) ? { ( [ ^ } ] + ) } f r o m [ ' " ] ( .+ ) [ ' " ] ; ? / gm,
161- ( _ , default_ , names , source ) => {
162- const d = default_ ? `default: ${ default_ } ` : '' ;
162+ ( _ , _default , names , source ) => {
163+ const d = _default ? `default: ${ _default } ` : '' ;
163164 return `const { ${ d } ${ names . replaceAll (
164165 ' as ' ,
165166 ': '
You can’t perform that action at this time.
0 commit comments