Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/vue2/source/vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ module.exports = {
if (process.env.NODE_ENV === "production") {
config.devtool = false;
}
// 兼容源码中library里使用的别名
config.resolve.alias['@vusion/utils'] = path.resolve(__dirname, 'src/utils');
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

请按 Prettier 统一字符串引号风格。

Line 10 新增代码使用了单引号,与当前文件其余配置的双引号风格不一致;建议改为 Prettier 统一格式,避免后续 lint/format 噪音。

建议修改
-    config.resolve.alias['@vusion/utils'] = path.resolve(__dirname, 'src/utils');
+    config.resolve.alias["@vusion/utils"] = path.resolve(__dirname, "src/utils");

As per coding guidelines, **/*.{js,jsx,ts,tsx,vue,json}: Apply Prettier code formatting to all code files.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
config.resolve.alias['@vusion/utils'] = path.resolve(__dirname, 'src/utils');
config.resolve.alias["@vusion/utils"] = path.resolve(__dirname, "src/utils");
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/vue2/source/vue.config.js` at line 10, The new alias assignment uses
single quotes and conflicts with the file's double-quote style; update the
statement that sets config.resolve.alias['@vusion/utils'] to use double quotes
consistently (i.e., change the key and path strings to double quotes), then run
Prettier (or your project's format script) to reformat the file so it matches
the project's Prettier rules for JS/JSON files.


/// cloud-ui-alias-start
config.resolve.alias["@lcap/pc-ui$"] = path.resolve(__dirname, "node_modules/@lcap/pc-ui/dist-theme/index.js");
Expand Down
Loading