typescript-plugin-css-modules

A TypeScript language service plugin providing support for CSS Modules.

MIT License

Downloads
1.7M
Stars
1.3K
Committers
29

Bot releases are hidden (Show)

typescript-plugin-css-modules - v2.5.0

Published by mrmckeb about 4 years ago

  • Loosened the peerDependency version for TypeScript to support any version greater than or equal to 3.0.0.

Thanks to @ekilah for raising this issue.

typescript-plugin-css-modules - v2.4.0

Published by mrmckeb over 4 years ago

  • Added support for Stylus (#91).

Thanks to @xiaoboost for their work on this feature.

typescript-plugin-css-modules - v2.3.0

Published by mrmckeb over 4 years ago

  • Added support for using a published package as a customRenderer (#80).
  • Fixed issues reported by GitHub dependency alerts.

Thanks to @dancon for their help with this release.

typescript-plugin-css-modules - v2.2.0

Published by mrmckeb over 4 years ago

  • Added the ability to provide a custom template for formatting and modifying DTS output (#73).

Thanks to @joeljeske for their help with this release.

typescript-plugin-css-modules - v2.1.2

Published by mrmckeb almost 5 years ago

  • Resolved an issue where .sass files were not processed by the Sass renderer (#68).
  • Updated the current working directory to be the TypeScript directory (#69). This ensures that process.cwd() now returns as expected.

Thanks to @judehunter and @muj-beg for their help with this release.

typescript-plugin-css-modules - v2.1.1

Published by mrmckeb almost 5 years ago

  • Resolves an issue with paths on Windows (#63).

Thanks to @hellocontrol-bng/@jakelauer for finding and resolving this issue.

typescript-plugin-css-modules - v2.1.0

Published by mrmckeb almost 5 years ago

  • includePaths in sass options will now extend, not override defaults (#60).
  • VSCode instructions have been updated (#61).

Thanks to @dagda1 for the work on #61, and thanks to @thekevinbrown for the documentation update.

typescript-plugin-css-modules - v2.0.2

Published by mrmckeb almost 5 years ago

  • Solves an issue where dotenv options were created, but not used (#59).

Thanks to @PsiRadish for feedback on this feature.

typescript-plugin-css-modules - v2.0.1

Published by mrmckeb almost 5 years ago

  • Resolved an issue where non-absolute paths in SASS_PATH were not be normalised (#58).

Thanks to @PsiRadish for his help with this release.

typescript-plugin-css-modules - v2.0.0

Published by mrmckeb almost 5 years ago

Breaking changes:

The camelCase has been renamed to classnameTransform (#55).

  • Supported options are now 'asIs', 'camelCase', 'camelCaseOnly', 'dashes', and 'dashesOnly'
  • This change aligns with the current version of css-loader.

PostCSS configs are no longer loaded automatically (#55).

  • A useConfig option has been introduced under postCssOptions.
  • Async plugins can now be excluded via a new excludePlugins rule.

New features:

  • Added relative @import support (#50).
  • Added .env support for variables like SASS_PATH (#51)
  • Added rendererOptions for passing options into Sass and Less renderers (#54).
  • Support for custom renderers has been introduced (#55).
  • Added support for dotenv configuration via dotenvOptions (#55).

Please see Options in our README for more details on new features.

Thanks to @BasilPP, @dagda1, @JounQin, @k-g-a, @lianapache, @p7g, @PsiRadish, and @woshiguabi for their help with this release.

typescript-plugin-css-modules - v1.3.1

Published by mrmckeb about 5 years ago

  • Resolved a release issue.
typescript-plugin-css-modules - v1.3.0

Published by mrmckeb about 5 years ago

  • Added a logger for TypeScript server errors, to help with debugging issues (#36).
  • Added support for custom PostCSS configs (#33).
  • Added a temporary fix for an issue where DTS files are passed to the snapshot creator (#43).

Thanks to @dagda1, @hipstersmoothie, and @dko-slapdash for their help with this release.

typescript-plugin-css-modules - v1.3.0-beta.1

Published by mrmckeb about 5 years ago

  • Added support for custom PostCSS configs.
typescript-plugin-css-modules - v1.3.0-beta.0

Published by mrmckeb about 5 years ago

  • Added a logger for TypeScript server errors, to help with debugging issues.
typescript-plugin-css-modules - v1.2.1

Published by mrmckeb over 5 years ago

  • Resolved an issue where CSS files containing PostCSS failed to be parsed (#28).
  • Resolved an issue where Sass imports were not resolved correctly (#31).

Thanks to @jgoz for raising and resolving #28, and to @zaaack for raising #29.

typescript-plugin-css-modules - v1.2.0

Published by mrmckeb over 5 years ago

  • Added support for resolving absolute imports, respecting baseUrl and paths (#26).

Thanks to @ChristianIvicevic and @bsunderhus for raising the related issues.

typescript-plugin-css-modules - v1.1.1

Published by mrmckeb over 5 years ago

  • Fixed a bug with LESS extension matching (#23).
typescript-plugin-css-modules - v1.1.0

Published by mrmckeb over 5 years ago

  • Added extended Sass support (#20).
  • Added LESS support (#21).
  • Added named exports for valid classes (#22).

Thanks to @Aqours, @babakness, @erwan-joly, and @spawluk for raising the related issues.

typescript-plugin-css-modules - v1.0.5

Published by mrmckeb almost 6 years ago

  • Resolved an issue where blank CSS files caused the plugin to crash (#13).
  • Resolved an issue where single-line (Sass-style) comments caused the plugin to crash (#13).
  • Extended nesting support to handle class concatenation (#14).

Thanks to @ChristianIvicevic for finding and raising these issues.

typescript-plugin-css-modules -

Published by mrmckeb almost 6 years ago

  • Resolved an issue with customMatcher.

Thanks to @fmal for raising and finding the cause of this issue.