The new module format enables global-less universal modules, compatible with both AMD and CJS module loaders. Fixes #2036.
17 lines
168 B
TypeScript
17 lines
168 B
TypeScript
// @target: ES5
|
|
// @sourcemap: false
|
|
// @declaration: false
|
|
// @module: umd
|
|
|
|
class A
|
|
{
|
|
constructor ()
|
|
{
|
|
|
|
}
|
|
|
|
public B()
|
|
{
|
|
return 42;
|
|
}
|
|
}
|