Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
fix: 修复 config.js 读取问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Darmody committed Aug 11, 2019
1 parent 1522486 commit a555f16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/remax-cli/src/readManifest.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default function readManifest(path: string, target: string) {
delete require.cache[require.resolve(path)];
const config = require(path) || require(path)[target];
const config = require(path)[target] || require(path);

if (!config) {
throw new Error(
Expand Down

0 comments on commit a555f16

Please sign in to comment.