Skip to content
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

node_modules 文件夹内的 ESM Module 语法依赖分析有误 #43

Closed
zcfan opened this issue Jan 9, 2020 · 0 comments
Closed

node_modules 文件夹内的 ESM Module 语法依赖分析有误 #43

zcfan opened this issue Jan 9, 2020 · 0 comments
Assignees

Comments

@zcfan
Copy link
Contributor

zcfan commented Jan 9, 2020

Description

node_modules 文件夹内的 ESM Module 语法依赖分析有误,对于 node_modules 内的如下 js 文件:

import aaa from "./aaa.js";
import bbb from "./bbb.js";

export default {
  aaa, bbb
}

如果在某个页面中 import 的话,最终只有 aaa.js 被复制到了 dist/npm 中,bbb.js 这个依赖没有正确分析。

大概知道哪的问题我先处理看看,搞不定再转文老板。

Environment

  • Platform: 无关
  • Platform version: 无关
  • Wechat version: 无关
  • @wxa/cli2 version: 2.1.14
  • @wxa/core version: 无关
  • other version: 无关

Reproduce

如问题描述

Observed Results

如问题描述

Expected Results

对于问题描述中的例子,应当正确解析出 aaa.jsbbb.js 两个依赖。

Relevant Code / Logs

@zcfan zcfan self-assigned this Jan 9, 2020
zcfan added a commit that referenced this issue Jan 9, 2020
@Genuifx Genuifx closed this as completed in 1675fe6 Jan 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant