Skip to content

Commit

Permalink
fix(spack): config file fix
Browse files Browse the repository at this point in the history
  • Loading branch information
3axap4eHko committed Mar 20, 2023
1 parent 3315419 commit 955f20f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node-swc/src/spack.ts
Expand Up @@ -8,7 +8,7 @@ export async function compileBundleOptions(config: BundleInput | string | undefi
const f = config === undefined ? '.' : config;

try {
const file = typeof f === 'string' ? f : path.resolve('spack.config.js');
const file = typeof f === 'string' ? path.resolve(f) : path.resolve('spack.config.js');
let configFromFile: BundleInput = require(file);
if ((configFromFile as any).default) {
configFromFile = (configFromFile as any).default;
Expand Down

0 comments on commit 955f20f

Please sign in to comment.