I've got the following which points to a backbone.d.ts definition.
import Backbone = module("../../../dep/backbone/backbone");
export class Codebook extends Backbone.Model {
defaults() {
return {
id: -1,
title: -1
}
}
initialize() {
// do nothing
}
}
With --module amd it generates the following.
define(["require", "exports", "../../../dep/backbone/backbone"], function(require, exports, __Backbone__) {
I've shimmed backbone with my RequireJS configuration file because of the global. I'd like for my define to just say backbone instead of the relative path. Is there any workaround besides a post-build process to manipulate the define?