esbuild-css-modules-plugin

A esbuild plugin to bundle css modules into js(x)/ts(x)

MIT License

Downloads
118.3K
Stars
91
Committers
10

Bot releases are visible (Hide)

esbuild-css-modules-plugin - v2.2.14

Published by indooorsman over 2 years ago

Lock @parcel/css version to 1.7.3, there's a breaking change from 1.7.3 to 1.7.4, the position of hash in selector changed, e.g.:

Full Changelog: https://github.com/indooorsman/esbuild-css-modules-plugin/compare/v2.2.13...v2.2.14

esbuild-css-modules-plugin - v2.2.13

Published by indooorsman over 2 years ago

  • [v2] [bugfix] exports of entry js are lost with auto inject

Full Changelog: https://github.com/indooorsman/esbuild-css-modules-plugin/compare/v2.2.12...v2.2.13

esbuild-css-modules-plugin - v2.2.12

Published by indooorsman over 2 years ago

  • [v2] only use cache in watch mode
  • [v2] refine inject logic
  • [v2] add example of custom inject to tests

Full Changelog: https://github.com/indooorsman/esbuild-css-modules-plugin/compare/v2.2.11...v2.2.12

esbuild-css-modules-plugin - v2.2.11

Published by indooorsman over 2 years ago

replace process.memoryUsage.rss() to process.memoryUsage().rss to support Nodejs<15.6.0

Full Changelog: https://github.com/indooorsman/esbuild-css-modules-plugin/compare/v2.2.10...v2.2.11

esbuild-css-modules-plugin - v2.2.10

Published by indooorsman over 2 years ago

What's Changed

  • [v2] refine cache logic
  • [v2] replace fs sync methods with promises

Full Changelog: https://github.com/indooorsman/esbuild-css-modules-plugin/compare/v2.2.8...v2.2.10

esbuild-css-modules-plugin - v2.2.9

Published by indooorsman over 2 years ago

esbuild-css-modules-plugin - v2.2.6

Published by indooorsman over 2 years ago

V2.2.6

  • [v2] refine some logs
  • [v2] handle onResolve for .modules.css files to add sideEffects: true & namespace to the resolve result
  • [v2] better support watch mode

Full Changelog: https://github.com/indooorsman/esbuild-css-modules-plugin/compare/v2.2.5...v2.2.6

esbuild-css-modules-plugin - v2.2.5

Published by indooorsman over 2 years ago

What's Changed

  • refactor a lot, v2 will not generate temporary folders/files anymore
  • v2 now support auto inject generated css into page
  • inject for and only for v2 can be set to a css selector of the element which you want to inject css to, if the element can't be found then inject to document.head

Full Changelog: https://github.com/indooorsman/esbuild-css-modules-plugin/compare/v2.2.1...v2.2.5

esbuild-css-modules-plugin - v2.2.1

Published by indooorsman over 2 years ago

esbuild-css-modules-plugin - v2.2.0

Published by indooorsman over 2 years ago

What's Changed

Full Changelog: https://github.com/indooorsman/esbuild-css-modules-plugin/compare/v2.1.6...v2.2.0

esbuild-css-modules-plugin - v2.1.6

Published by indooorsman over 2 years ago

  • fix .d.ts
esbuild-css-modules-plugin - v2.1.5

Published by indooorsman over 2 years ago

esbuild-css-modules-plugin - v2.1.4

Published by indooorsman over 2 years ago

What's Changed

  • [v2] add filename as class prefix, e.g.: .some-class in some.module.css will be transformed to .some-module__some-class-[hash]
esbuild-css-modules-plugin - v2.1.3

Published by indooorsman over 2 years ago