Skip to content

Commit

Permalink
docs(design-core/scripts): 三方cdn解耦 修正描述错误
Browse files Browse the repository at this point in the history
  • Loading branch information
rhlin committed May 12, 2024
1 parent 707a075 commit d9b6710
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/design-core/scripts/localCdnFile/copyImportMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const copyLocalImportMap = ({
base,
dir = 'import-map-static',
bundleTempDir = 'bundle-deps/design-core-import-map',
packageCopy = [] // key之为importMap的imports的左值 (非右值的地址上的包名)
packageCopy = [] // 值为importMap的imports的左值 (非右值的地址上的包名)
}) => {
const importMapFiles = Object.entries(importMap.imports)
.filter(([_libKey, libPath]) => libPath.startsWith(originCdnPrefix))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function copyPreviewImportMap({
base,
dir = 'preview-import-map-static',
bundleTempDir = 'bundle-deps/preview-import-map',
packageCopyLib = [] // key之为cdn地址上的包名
packageCopyLib = [] // 值为cdn地址上的包名
}) {
const cdnFiles = extraPreviewImport(importMapJson, originCdnPrefix).map((url) => {
const { packageName } = url.match(
Expand Down

0 comments on commit d9b6710

Please sign in to comment.