-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Description
This sample in the readme does not works.
<script>
R(function (require, module, exports) {
var index = require("./index");
exports.hello = "World!"
}, function (err, exports) {
if (err) {
console.error(err.statusText);
return;
}
console.log(exports.hello)
});
</script>
This one works well 👍
<script>
R(function (require, module, exports) {
var index = require("./index");
exports.exports.hello = "World!"; // Here it is attached to the good object.
}, function (err, exports) {
if (err) {
console.error(err.statusText);
return;
}
console.log(exports.hello)
});
</script>
Solutions :
Modify the readme OR Modify the source code.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels