m
message has been deleted
d
I just gave this a whirl today for the first time
i've found my output js is something like:
Copy code
/**
 *
 * @NApiVersion 2.x
 * @NScriptType UserEvent
 */
define(["require", "exports"], function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.afterSubmit = function (context) {
        context.newRecord.getValue("entity");
    };
});
will that work? having an exports like that? or did I miss a step?
b
should work, amd has special modules named require, module and exports
module and exports works like common js
w
what IDE is that? thanks
d
Guessing it's webstorm