Skip to content

Commit

Permalink
fix(mini-runner): 组件中 $componentPath 路径生成不对
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyadam committed Jan 7, 2020
1 parent ef7431d commit 978cef0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/taro-mini-runner/src/loaders/fileParseLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {
taroJsRedux,
QUICKAPP_SPECIAL_COMPONENTS,
PARSE_AST_TYPE,
NODE_MODULES_REG,
excludeReplaceTaroFrameworkPkgs
} from '../utils/constants'
import {
Expand Down
3 changes: 3 additions & 0 deletions packages/taro-mini-runner/src/plugins/MiniPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ export default class MiniPlugin {
const transformResult = wxTransformer({
code,
sourcePath: appEntry,
sourceDir: this.sourceDir,
isTyped: REG_TYPESCRIPT.test(appEntry),
isApp: true,
adapter: buildAdapter
Expand Down Expand Up @@ -582,6 +583,7 @@ export default class MiniPlugin {
const aheadTransformResult = wxTransformer({
code,
sourcePath: file.path,
sourceDir: this.sourceDir,
isRoot,
isTyped: REG_TYPESCRIPT.test(file.path),
adapter: buildAdapter
Expand All @@ -601,6 +603,7 @@ export default class MiniPlugin {
const transformResult = wxTransformer({
code,
sourcePath: file.path,
sourceDir: this.sourceDir,
isTyped: REG_TYPESCRIPT.test(file.path),
isRoot,
rootProps: isEmptyObject(rootProps) || rootProps,
Expand Down

0 comments on commit 978cef0

Please sign in to comment.