A custom transformer that can be used with ttypescript to transform ts imports to browser style imports
Home > config > PluginConfigs > extNameRemote
Also append extension ‘.js’ to http:// or https:// URLs.
Signature:
extNameRemote?: boolean
Source code:
Filename: extName-default.ts
import './local-file'
import '/local-file'
import 'http://remote/file'
Outputs:
Filename: extNameRemote-false.js
// CompilerOptions: {"module":"ESNext"}
// PluginConfig: {"extNameRemote":false}
import "./local-file.js";
import "/local-file.js";
import 'http://remote/file';
Filename: extNameRemote-true.js
// CompilerOptions: {"module":"ESNext"}
// PluginConfig: {"extNameRemote":true}
import "./local-file.js";
import "/local-file.js";
import "http://remote/file.js";