Skip to content

Transpiling TypeScript with other module formats #138

Closed
@guybedford

Description

@guybedford

The Babel plugin supports transpiling CommonJS when load.metadata.format == 'cjs' for a given module metadata.

In this case it will skip the registry output, effectively like a modules: none.

I tried this with the TypeScript plugin but got the error:

TypeScript transpiling to None, consider setting module: "system" in typescriptOptions to transpile directly to System.register format
logger.js:17 TypeScript Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher. (TS5047)Logger.error @ logger.js:17
undefined:1 Uncaught (in promise) Error: (SystemJS) Error: TypeScript transpilation failed(…)

//cc @OliverJAsh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions