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 1
1
import * as fs from 'node:fs' ;
2
2
import * as path from 'node:path' ;
3
- import glob from 'tiny-glob/sync' ;
4
- import colors from 'kleur' ;
3
+
5
4
import { assert } from 'vitest' ;
5
+ import colors from 'kleur' ;
6
6
import { compile } from 'svelte/compiler' ;
7
7
import { fileURLToPath } from 'node:url' ;
8
+ import glob from 'tiny-glob/sync' ;
8
9
9
10
export function try_load_json ( file ) {
10
11
try {
@@ -158,8 +159,8 @@ export function create_loader(compileOptions, cwd) {
158
159
)
159
160
. replace (
160
161
/ ^ 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 } ` : '' ;
163
164
return `const { ${ d } ${ names . replaceAll (
164
165
' as ' ,
165
166
': '
You can’t perform that action at this time.
0 commit comments