@ssen/extended-compiler-host
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

@ssen/extended-compiler-host

Use createCompilerHost() instead.

import { CompilerHost, createCompilerHost } from 'typescript';
import { createExtendedCompilerHost } from '@ssen/extended-compiler-host';

// const compilerHost: CompilerHost = createCompilerHost(compilerOptions);
const compilerHost: CompilerHost = createExtendedCompilerHost(compilerOptions);

Support Files

Plain Text

  • import string from './file.html'
  • import string from './file.txt'
  • import string from './file.md'
  • import string from './file.ejs'

YAML

  • import object from './file.yaml'
  • import object from './file.yml'

Image

  • import base64String from './file.jpg'
  • import base64String from './file.jpeg'
  • import base64String from './file.gif'
  • import base64String from './file.png'
  • import base64String from './file.webp'

SVG

  • import base64String, { ReactComponent } from './file.svg'

You can change export to import ReactComponent from './file.svg' with process.env.TS_SVG_EXPORT === 'default'

Readme

Keywords

none

Package Sidebar

Install

npm i @ssen/extended-compiler-host

Weekly Downloads

8

Version

4.0.0

License

MIT

Unpacked Size

21.5 kB

Total Files

6

Last publish

Collaborators

  • ssen