- Fix sourcemap
- Do not emit .d.ts for files outside of build root
- add ability to custom ts declaration file outdir
This version has some breaking changes:
- drop postcss-module, as a result most of postcss-module configurations are removed as well
- remove
v2
feature flag
Other changes:
- full support of
compose
- code refactor
- export both
commonjs
&es
module
- support esbuild@^0.17
- fix inject logic to avoid styles missing in some micro-frontend framework
- Important: there's a breaking change of inject logic, before this version the inject method would be deleted once it's called, from this verson it will not be deleted anymore, for people using custom inject method please pay attention.
- upgrade dependencies
- fix #45 #46, thanks to @markdalgleish
@parcel/css
now namedlightningcss
- support pascal case by @FuriouZz #43
- upgrade
@parcel/css
to1.12.0
- validate class name, js keywords are considered to be invalid, e.g.
.default { } .const { }
will throw error during building
- Add filter option: Regular expression used to match CSS module files by @christianvuerings in #40
- Fix issue#33
- V2: upgrade
@parcel/css
to1.9.0
- V2: add a new option
v2CssModulesOption
, refer to https://github.com/parcel-bundler/parcel-css/releases/tag/v1.9.0
commit: 6d0cc68
- V2: pass relative path to
@parcel/css
as filename to keep hash stable in different machines
- [v2] [bugfix] exports of entry js are lost with auto inject
- [v2] only use cache in watch mode
- [v2] refine inject logic
- [v2] add example of custom inject to tests
- replace
process.memoryUsage.rss()
toprocess.memoryUsage().rss
to support Nodejs<15.6.0
- [v2] refine cache logic
- [v2] replace fs sync methods with promises
- [v2] refine some logs
- [v2] make hash of outputs stable
- [v2] support
entryPoints
as object
- [v2] refine some logs
- [v2] handle
onResolve
for.modules.css
files to addsideEffects: true
&namespace
to the resolve result - [v2] better support
watch
mode
- 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
- [v2] add filename as class prefix, e.g.:
.some-class
insome.module.css
will be transformed to.some-module__some-class-[hash]
- support
@import url(./xxx/xxx.css)
in v2 (path can't be remote url) - upgrade
@parcel/css
to1.3.1