Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
fix: 修复使用 TypeScript 时无法引用小程序组件的问题 (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pochodaydayup authored and yesmeck committed Nov 20, 2019
1 parent d60cc8d commit db7a2d8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ export default (

const collectPages = (page: string, importer: string) => {
const nativeImporter = importers.get(
searchFile(path.join(options.cwd, importer).replace('.js', ''))
searchFile(
path.join(options.cwd, importer).replace(path.extname(importer), '')
)
);

if (nativeImporter) {
Expand Down

0 comments on commit db7a2d8

Please sign in to comment.