Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2b4b655

Browse files
committed
fix: avoid using import.meta.dirname; fixes Node.js 18 compatibility
Closes#729The bug is again related to the CLI code rather than the template -we need to refactor the CI workflow to test the CLI code in allenvironments.
1 parent5d12581 commit2b4b655

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { trimBoilerplate, removeCSSImport, emptyRouterConfig } from './utils/tri
2121

2222
importcliPackageJsonfrom'./package.json'
2323

24-
constlanguage=awaitgetLanguage(path.resolve(import.meta.dirname,'locales'))
24+
constlanguage=awaitgetLanguage(fileURLToPath(newURL('./locales',import.meta.url)))
2525

2626
constFEATURE_FLAGS=[
2727
'default',

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp