Skip to content

Commit

Permalink
fix: fix config file with "type": "module" (#353)
Browse files Browse the repository at this point in the history
closes #352
  • Loading branch information
PabloSzx committed Jul 6, 2021
1 parent fc8d689 commit 405e165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/load.ts
Expand Up @@ -81,7 +81,7 @@ function removeFile(filepath: string) {

async function bundleConfig(configFile: string) {
const { build } = await import('esbuild')
const outFile = configFile.replace(/\.[a-z]+$/, '.bundled.js')
const outFile = configFile.replace(/\.[a-z]+$/, '.bundled.cjs')
const readConfig = () => {
delete eval(`require.cache`)[outFile]
const result = require(outFile)
Expand Down

1 comment on commit 405e165

@vercel
Copy link

@vercel vercel bot commented on 405e165 Jul 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.