From cdc5fa8676625eb69fffeed381a4b8d4ba66c88c Mon Sep 17 00:00:00 2001 From: youbing54 Date: Thu, 30 May 2024 16:10:50 +0800 Subject: [PATCH] Description: The lite project cache directory is named lite_cache IssueNo: https://gitee.com/openharmony/developtools_ace_js2bundle/issues/I9TI0F Feature or Bugfix: Feature Binary Source:Yes Signed-off-by: youbing54 --- ace-loader/src/compile-plugin.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ace-loader/src/compile-plugin.js b/ace-loader/src/compile-plugin.js index 1f71854..1fb3103 100644 --- a/ace-loader/src/compile-plugin.js +++ b/ace-loader/src/compile-plugin.js @@ -52,7 +52,8 @@ class ResultStates { const buildPath = this.options.build; const commonPaths = new Set(); const i18nPaths = new Set(); - const cachePath = path.resolve(process.env.cachePath, '.rich_cache'); + const cachePath = path.resolve(process.env.cachePath, process.env.DEVICE_LEVEL === 'rich' ? + '.rich_cache' : '.lite_cache'); const entryFile = path.join(cachePath, 'entry.json'); const entryPaths = new Set(); -- Gitee