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

Commit

Permalink
fix: 修复 watch 模式下app.config 配置不更新的问题 (#1546)
Browse files Browse the repository at this point in the history
  • Loading branch information
Deuscx authored May 28, 2021
1 parent 96b864d commit b0bcdc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/remax-cli/src/readManifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ function readTypescriptManifest(path: string, target: Platform) {
extensions: ['.ts'],
cache: false,
});
delete require.cache[path];
delete require.cache[require.resolve(path)];
const config = require(path)[target] || require(path).default || require(path);

return config;
}

function readJavascriptManifest(path: string, target: Platform) {
delete require.cache[path];
delete require.cache[require.resolve(path)];
const config = require(path)[target] || require(path).default || require(path);

return config;
Expand Down

0 comments on commit b0bcdc4

Please sign in to comment.