File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ export class NodePackageImporter {
21
21
entryPointDirectory = entryPointDirectory
22
22
? p . resolve ( entryPointDirectory )
23
23
: require . main ?. filename
24
- ? p . dirname ( require . main . filename )
25
- : // TODO: Find a way to use `import.meta.main` once
26
- // https://github.com/nodejs/node/issues/49440 is done.
27
- process . argv [ 1 ]
28
- ? createRequire ( process . argv [ 1 ] ) . resolve ( process . argv [ 1 ] )
29
- : undefined ;
24
+ ? p . dirname ( require . main . filename )
25
+ : // TODO: Find a way to use `import.meta.main` once
26
+ // https://github.com/nodejs/node/issues/49440 is done.
27
+ process . argv [ 1 ]
28
+ ? createRequire ( process . argv [ 1 ] ) . resolve ( process . argv [ 1 ] )
29
+ : undefined ;
30
30
if ( ! entryPointDirectory ) {
31
31
throw new Error (
32
32
'The Node package importer cannot determine an entry point ' +
Original file line number Diff line number Diff line change @@ -216,8 +216,8 @@ export class LegacyImporterWrapper<sync extends 'sync' | 'async'>
216
216
const syntax = canonicalUrl . pathname . endsWith ( '.sass' )
217
217
? 'indented'
218
218
: canonicalUrl . pathname . endsWith ( '.css' )
219
- ? 'css'
220
- : 'scss' ;
219
+ ? 'css'
220
+ : 'scss' ;
221
221
222
222
let contents =
223
223
this . lastContents ??
You can’t perform that action at this time.
0 commit comments