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

module.exports.func = XXX standalone 编译后的问题 #76

Open
hotoo opened this issue Apr 1, 2015 · 1 comment
Open

module.exports.func = XXX standalone 编译后的问题 #76

hotoo opened this issue Apr 1, 2015 · 1 comment

Comments

@hotoo
Copy link
Member

hotoo commented Apr 1, 2015

比如 arale-overlay 源码是:

module.exports = require('./src/overlay');
module.exports.Mask = require('./src/mask');

编译后

arale_overlay_120_overlay_debug = function (exports) {
  exports = arale_overlay_120_src_overlay_debug;
  module.exports.Mask = arale_overlay_120_src_mask_debug;
  return exports;
}();

抛出 Uncaught ReferenceError: module is not defined 异常。

@sorrycc
Copy link
Member

sorrycc commented Apr 2, 2015

试试 spm-webpack

On Wed, Apr 1, 2015 at 11:28 PM, 闲耘™ notifications@github.com wrote:

比如 arale-overlay 源码是:

module.exports = require('./src/overlay');module.exports.Mask = require('./src/mask');

编译后

arale_overlay_120_overlay_debug = function (exports) {
exports = arale_overlay_120_src_overlay_debug;
module.exports.Mask = arale_overlay_120_src_mask_debug;
return exports;
}();

抛出 Uncaught ReferenceError: module is not defined 异常。


Reply to this email directly or view it on GitHub
#76.

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