eugeneware / eugeneware/decomponentify
Problem with component defined inside closure
Open
- Dominant language
- JavaScript
- Stars
- 70
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
Hi, I'm trying deomponentify with [move.js](https://github.com/visionmedia/move.js/blob/master/move.js#L1). Problem is, the entire component and the require function is defined inside a closure:
``` javascript
(function() {
function require(...)
...
}) ();
```
When this gets decomponentified, it becomes like this:
``` javascript
(function() {
function _require(...)
...
}) ();
module.exports = _require;
```
The problem is, `_require` is not available outside the closure, and module.exports ends up being undefined.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.