We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
设置过
fis.hook('commonjs', { forwardDeclaration: true, skipBuiltinModules: true });
之后构建文件
构建前:
var $ = require('jquery/1.11.3:exports/jquery'); module.exports = $;
构建后:
define('jquery', [], function(require, exports, module) { var $ = require('jquery/1.11.3:exports/jquery'); module.exports = $; });
期望值:
define('jquery', ['jquery/1.11.3:exports/jquery'], function(require, exports, module) { var $ = require('jquery/1.11.3:exports/jquery'); module.exports = $; });
The text was updated successfully, but these errors were encountered:
问题补充: 对于require没有命名空间的文件,构建后是正常的
eg:
var $ = require('jquery'); module.exports = $;
define('$', ['jquery'], function(require, exports, module) { var $ = require('jquery'); module.exports = $; });
这种是属于我期望的结果
Sorry, something went wrong.
解决了 https://github.com/fex-team/fis3-hook-commonjs/releases/tag/0.1.2
No branches or pull requests
设置过
之后构建文件
构建前:
构建后:
期望值:
The text was updated successfully, but these errors were encountered: