You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Proposal for adding support for transformation of non ts modules,
Example: a npm typescript-css-module, defining following module, idea:
index.d.ts
declare module "*.css"{// exposes the classnames definitions and transforms and adds the css// to the css bundle/fileexportdefaulttransformer'index.ts';}
index.ts
// css-module-transformerexportdefaultfunction(context: TransformationContext){// parse the css file, make classnames uniq, add the css to a target css file// add source map files// and produce a ts file mapping classnames for type checking and autocomplete}
The text was updated successfully, but these errors were encountered:
@mhegazy that might be the best to use something like typed-css-modules, keeping tsc strictly for ts
The initial idea was to avoid all the setup of webpack/loaders etc. being able to compile modules without to much hassle. I'll close this as not relevant
TypeScript compiler emits JS files, it would be awesome if we could hook into module loading and provide type definition to compiler for non-TS files for autocomplete etc and in compile time we emit non-JS files.
I love to use TypeScript compiler to do things I do with Webpack. I wish TypeScript had APIs to enable doing stuff like this.
Proposal for adding support for transformation of non ts modules,
Example: a npm
typescript-css-module
, defining following module, idea:index.d.ts
index.ts
The text was updated successfully, but these errors were encountered: