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

npm包管理下,require('package_id')不会默认识别 #56

Open
lococo--0 opened this issue May 20, 2016 · 4 comments
Open

npm包管理下,require('package_id')不会默认识别 #56

lococo--0 opened this issue May 20, 2016 · 4 comments

Comments

@lococo--0
Copy link

对于npm的包管理,和ES6语法

import { module } from 'package_id'

每次都要去配

fis.match('/node_modules/path/to/package.js', {
  id: 'package_id'
});

太不科学了!!
可不可以给所有的这种id路径,去设置自动查找啊,去分析node_modules里面的package.json的main field,然后分析到相应依赖,不然node_module的路径真的配的好恶心

@2betop
Copy link
Contributor

2betop commented May 20, 2016

你应该用 fis3-hook-node_modules 插件,而不是去设置 id

@lococo--0
Copy link
Author

@2betop 终于有这种东西了!!!!!

@lococo--0
Copy link
Author

@2betop 是不是应该在hook文档里写一下 ·· 现在hook那边还是3个选择

@2betop
Copy link
Contributor

2betop commented May 20, 2016

不是同类东西。文档会加载官网里面的。

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

2 participants