Skip to content

Commit

Permalink
fix: node 22 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyie committed Dec 19, 2024
1 parent dbad6e7 commit 012a2a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/assetpack/src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ async function main()
try
{
/* eslint-disable @typescript-eslint/no-var-requires, global-require */
config = require(configPath) as AssetPackConfig;
const configModule = require(configPath);

config = (configModule.__esModule ? configModule.default : configModule);
AssetPack = require('@assetpack/core').AssetPack;
/* eslint-enable @typescript-eslint/no-var-requires, global-require */
}
Expand Down

0 comments on commit 012a2a1

Please sign in to comment.