4.0.0 • Published 2 years ago

@ssen/extended-compiler-host v4.0.0

Weekly downloads
243
License
MIT
Repository
github
Last release
2 years ago

@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'

4.0.0-alpha.1

2 years ago

4.0.0

2 years ago

3.0.3

2 years ago

3.0.2-alpha.1

3 years ago

3.0.2

3 years ago

3.0.0

3 years ago

3.0.0-alpha.7

3 years ago

3.0.0-alpha.5

3 years ago

3.0.0-alpha.1

3 years ago

3.0.0-alpha.3

3 years ago

2.5.1

3 years ago

2.5.0

3 years ago

2.4.1

3 years ago

2.4.0

3 years ago

2.3.2

3 years ago

2.3.0

4 years ago

2.3.1

4 years ago

2.2.3

4 years ago

2.2.2

4 years ago

2.2.1

4 years ago

2.2.0

4 years ago

2.2.0-alpha.1

4 years ago

2.1.3

4 years ago

2.1.2

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.1.0-alpha.1

4 years ago

2.0.0

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

1.0.0-alpha.9

4 years ago

1.0.0-alpha.8

4 years ago

1.0.0-alpha.7

4 years ago

1.0.0-alpha.6

4 years ago

1.0.0-alpha.5

4 years ago

1.0.0-alpha.4

4 years ago

1.0.0-alpha.3

4 years ago

1.0.0-alpha.1

4 years ago

0.2.10

4 years ago

0.2.9

4 years ago

0.2.7

4 years ago

0.2.8

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago