Skip to content

Commit

Permalink
fix(jsx2mp): usingComponents path error when disableCopyNpm (#1988)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisCindy authored Aug 24, 2020
1 parent 247459e commit b5d53e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/jsx-compiler/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jsx-compiler",
"version": "0.4.16",
"version": "0.4.17",
"license": "BSD-3-Clause",
"description": "Parser for Rax JSX Statements.",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/jsx-compiler/src/modules/components.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ function getComponentPath(alias, options) {

// Use specific path to import native miniapp component
if (pkgName !== alias.from) {
return normalizeFileName(addRelativePathPrefix(normalizeOutputFilePath(join(npmRelativePath, alias.from.replace(pkgName, realPkgName)))));
return disableCopyNpm ? alias.from : normalizeFileName(addRelativePathPrefix(normalizeOutputFilePath(join(npmRelativePath, alias.from.replace(pkgName, realPkgName)))));
}
// Use miniappConfig in package.json to import native miniapp component
const pkg = getComponentConfig(alias.from, options.resourcePath);
Expand Down

0 comments on commit b5d53e8

Please sign in to comment.