-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Labels
Description
When we a cjs js-patch that needs to require the original class, the app-deps command fails with an error such as
java.lang.RuntimeException: Attempt to map '../../libs/javascript/br/presenter/node/Field.js' to '../../libs/javascript/br/presenter/node/Field.js'.
Example of offending patch:
var Field = require('br/presenter/node/Field');
var WritableProperty = require('br/presenter/property/WritableProperty');
var topiarist = require('topiarist');
function FieldPatch(vValue) {
// PATCH START
/**
* A boolean property that is <code>true</code> if {@link #value} is waiting for validation, and <code>false</code> otherwise.
* @type br.presenter.property.WritableProperty
*/
this.pending = new WritableProperty(false);
// PATCH END
Field.call(this, vValue);
}
topiarist.extend(FieldPatch, Field);
module.exports = FieldPatch;