Skip to content
This repository was archived by the owner on Apr 14, 2020. It is now read-only.
This repository was archived by the owner on Apr 14, 2020. It is now read-only.

"// req: jquery as $" becomes "jquery as $" #24

Description

@esc-mhild

The syntax

// req: jquery as $

leads to

define('esc', ['jquery as $'], function(jquery as $) {
...
});

I take it this is not intended.

My full js file looks like this:

/**
* ESC top-level namespace.
*
* @module esc
*/
var esc;
(function (esc) {

// req: jquery as $
/// <reference path="../../../../lib/jquery.d.ts"/>
/**
* here goes nothing
*/

})(esc || (esc = {}));
//# sourceMappingURL=esc.js.map

Many thanks for this very useful tool!

As you can see, I'm trying out Interleave to avoid the forced choice between internal and external modules in Typescript. I'm using Typescript's /// directive to compile all of my project-internal ts files into a single js file and then use Interleave to expose it as a AMD module.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions