-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: redirect named import #6061
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## release/next #6061 +/- ##
===============================================
Coverage ? 82.06%
===============================================
Files ? 199
Lines ? 18256
Branches ? 2379
===============================================
Hits ? 14982
Misses ? 3240
Partials ? 34
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
The base branch was changed.
@@ -3,8 +3,8 @@ import fse from 'fs-extra'; | |||
import type { Compiler } from 'webpack'; | |||
import webpack from '@ice/bundles/compiled/webpack/index.js'; | |||
import type { Context } from 'build-scripts'; | |||
import type { ServerCompiler, PluginData } from '../types/plugin.js'; | |||
import { IMPORT_META_RENDERER, IMPORT_META_TARGET, RUNTIME_TMP_DIR, RUNTIME_EXPORTS } from '../constant.js'; | |||
import type { ServerCompiler, PluginData, DeclarationData } from '../types/plugin.js'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
建议是从 packages/ice/src/types/generator.js 导入,DeclarationData 不属于 plugin
this.serverCompiler = serverCompiler; | ||
this.rootDir = rootDir; | ||
this.dataCache = dataCache; | ||
this.getAllPlugin = getAllPlugin; | ||
this.target = target; | ||
this.exportList = exportList; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
建议在 DataLoaderPlugin 里 exportList 的命名可以显式说明是什么样的 exportList
按照
const exportList = generator.getExportList('framework', target);
可以考虑命名为 frameworkExportList
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
xxList 通常可以用复数形式表示
fix: #6059