1.3.1 • Published 19 days ago

@typescriptlibs/amd v1.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
19 days ago

AMD: TypeScript AMD Loader

This package provides the necessary functions to load and run a TypeScript AMD bundle as created by the outFile option of a tsconfig.json.

It does not support loading of external files. Each external dependency must also be created as a TypeScript AMD bundle instead.

CodeQL Node.js npm license

Example

// MyBundle.ts
export function hello () {
    alert( 'Hello, world!' );
}
<!-- my-app.html -->
<html lang="en">
    <head>
        <script src="amd.js"></script>
        <script src="my-ts-amd-bundle.js" async></script>
        <script>
            window.addEventListener( 'load', () => require('MyBundle').hello() );
        </script>
    </head>
    <body>
    </body>
</html>
1.3.1

19 days ago

1.3.0

2 months ago

1.2.0

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago