Skip to content

Commit 6cdf30a

Browse files
committed
Reformat
1 parent 00524d8 commit 6cdf30a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

lib/src/importer-registry.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ export class NodePackageImporter {
2121
entryPointDirectory = entryPointDirectory
2222
? p.resolve(entryPointDirectory)
2323
: 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;
3030
if (!entryPointDirectory) {
3131
throw new Error(
3232
'The Node package importer cannot determine an entry point ' +

lib/src/legacy/importer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ export class LegacyImporterWrapper<sync extends 'sync' | 'async'>
216216
const syntax = canonicalUrl.pathname.endsWith('.sass')
217217
? 'indented'
218218
: canonicalUrl.pathname.endsWith('.css')
219-
? 'css'
220-
: 'scss';
219+
? 'css'
220+
: 'scss';
221221

222222
let contents =
223223
this.lastContents ??

0 commit comments

Comments
 (0)