@modular-css/css-to-js
Internal package, used to take a modular-css
processed file and turn it into a variety of JS-appropriate information.
Used by @modular-css/rollup
, @modular-css/vite
, and @modular-css/wepback
.
Usage
Probably don't?
modular-css powered conversion of CSS to JavaScript
Internal package, used to take a modular-css
processed file and turn it into a variety of JS-appropriate information.
Used by @modular-css/rollup
, @modular-css/vite
, and @modular-css/wepback
.
Probably don't?
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
<style type="text/m-css">
and a <link>
element in a component will no longer throw. <style>
takes precedence over <link>
.<style>
tags would be transformed, now only ones that have type="text/m-css"
on them will be transformed.postcss@8
and highercomposes
and @values
that reference other entries will need to be listed in dependency order.postcss@8
be installed alongside to function.Note: Version bump only for package modular-css
modular-css
would require that composes
be the first declaration in a rule. This restriction has been removed due to better solutions for enforcing that behavior existing now (stylelint-order).true-case-path
, and making it async wasn't a guaranteed win either. So it's removed, which should solve #581 pretty neatly. Instead now there's a warning if two files are included that differ in case only. It can be disabled by setting dupewarn : false
as part of the config object.Note: Version bump only for package modular-css
<script>
block just to import css if there isn't already a <script>
block defined in the module.assets
and dynamicAssets
array on them, and the metadata file will now contain an assets
and dynamicAssets
keys on them as well.Both assets
and dynamicAssets
will only contain assets directly required by the bundle, instead of the bundle and all its dependencies.
{ clean : true }
.Processor
instances must be instantiated with new
, they're no longer auto-instantiatingjson : true
has changed from whatever the CSS file was called to exports.json
Processor.remove()
no longer removes the specified files AND their dependencies.modular-css-svelte
no longer has a custom rollup integration, use modular-css-rollup
insteadmodular-css-rollup
now supports a common
option that will handle outputting any CSS that was removed from chunks due to treeshaking.modular-css-rollup
accepts a new processor
option that is expected to be a fully-configured & instantiated instance of Processor
from modular-css-core
.Note: Version bump only for package modular-css-root
postcss-url
from running you now specify rewrite: false
instead of defining an after
segment.