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

Commit

Permalink
fix: 修复 rebuild 读取到错误的 remax config 文件的问题 (#265)
Browse files Browse the repository at this point in the history
fix #263
  • Loading branch information
Darmody authored and yesmeck committed Sep 30, 2019
1 parent 1e7997d commit 5c28c5c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/remax-cli/src/getConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export interface CliOptions {
export default function getConfig(): RemaxOptions {
const configPath: string = path.join(process.cwd(), './remax.config.js');
if (fs.existsSync(configPath)) {
delete require.cache[require.resolve(configPath)];
// eslint-disable-next-line
const options = require(configPath);

Expand Down

0 comments on commit 5c28c5c

Please sign in to comment.