{"library":"ts-transformer-inline-file","type":"library","category":null,"description":"A TypeScript custom transformer that inlines file contents at compile-time. Version 0.2.0 is the latest stable release; the project appears to have no recent activity. It transforms $INLINE_FILE() calls to string literals and $INLINE_JSON() calls to object literals, with support for destructuring to include only selected properties. Unlike runtime fs.readFileSync, this avoids bundling cost and enables minification. Requires TypeScript >=4.0 and uses peer dependency on typescript. Configuration requires a transformer wrapper (ttypescript, rollup-plugin-typescript2, or ts-loader). Ships TypeScript types but is itself ESM/CJS compatible.","language":"javascript","status":"active","version":"0.2.0","tags":["javascript","inline","transformer","typescript","typescript-transformer"],"last_verified":"Thu Jun 04","install":[{"cmd":"npm install ts-transformer-inline-file","imports":["import { $INLINE_FILE } from 'ts-transformer-inline-file'","import { $INLINE_JSON } from 'ts-transformer-inline-file'","import inlineFileTransformer from 'ts-transformer-inline-file/transformer'"]},{"cmd":"yarn add ts-transformer-inline-file","imports":[]},{"cmd":"pnpm add ts-transformer-inline-file","imports":[]}],"homepage":"https://github.com/jirutka/ts-transformer-inline-file","github":"https://github.com/jirutka/ts-transformer-inline-file","docs":null,"changelog":null,"pypi":null,"npm":"ts-transformer-inline-file","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}