-
#1385
3df9b4ebc5ad7e03e5c908c10216447b7089132a
Thanks @askoufis! - Replacechalk
dependency withpicocolors
-
Updated dependencies [
606660618dc5efa6c529f77cebf9d2b8dc379dbd
,e58cf9013c6f6cdfacb2a7936b3354e71138e9fb
]:- @vanilla-extract/integration@7.1.3
-
#1333
6ac9f66
Thanks @askoufis! - Use a more accurate regex for detecting webpack template strings in pathsWe now use a modified version of the regex from the webpack source code to detect template strings in paths. As long as the path isn't already escaped, we should detect it.
- Updated dependencies [
fdafb6d
]:- @vanilla-extract/integration@7.0.0
-
#1247
f0c3be9
Thanks @askoufis! - Fixes a bug that was causing style compilation to fail on paths containing webpack template strings such as[id]
or Next.js dynamic routes such as[slug]
. -
Updated dependencies [
545bf82
]:- @vanilla-extract/integration@6.5.0
-
#1291
00af971
Thanks @mrm007! - Update dependency@vanilla-extract/integration
-
#1254
f373d7f
Thanks @EvgenNoskov! - Allow hyphens in class names when using a custom identifier
-
#1262
610c50b
Thanks @mrm007! - Update Babel config to target Node.js 14 -
Updated dependencies [
610c50b
,610c50b
]:- @vanilla-extract/integration@6.2.5
- #1180
89224fe
Thanks @syfxlin! - Fixes Next.js 13 CSS output on Windows when using React Server Components
- #1160
e391bae
Thanks @SombreroElGringo! - Users can now provide a custom identifier hashing function
-
#827
9cfb9a1
Thanks @mattcompiles! - Remove requirement for@vanilla-extract/babel-plugin
Previously, to get automatic debug IDs you needed to use Babel with the
@vanilla-extract/babel-plugin
in your config. As this is no longer the case, the@vanilla-extract/babel-plugin
should be removed completely from your project.
- #783
21afc23
Thanks @benjervis! - Remove theextracted
entrypoint from the webpack plugin.
- Updated dependencies [
e373b51
]:- @vanilla-extract/integration@5.0.0
-
#673
f6d5337
Thanks @mattcompiles! - Fix issue where.css.ts
files with the same file path from other packages could have identifier collisions -
Updated dependencies [
f6d5337
]:- @vanilla-extract/integration@4.0.1
-
#647
3c9b7d9
Thanks @mattcompiles! - Use more realistic file paths for virtual CSS files -
Updated dependencies [
3c9b7d9
]:- @vanilla-extract/integration@4.0.0
-
#634
69b8460
Thanks @phil-lgr! - Add fileName to the CSS virtual loader paramsThis allows users to identify the source file for vanilla-extract css imports
- #645
5ebca75
Thanks @mattcompiles! - Bump@vanilla-extract/integration
dep
-
#621
bec1cd8
Thanks @nayaabkhan! - Improve build performance when creating large CSS files -
Updated dependencies [
bec1cd8
,e1550da
,e1550da
]:- @vanilla-extract/integration@3.0.0
-
#543
2c7abb1
Thanks @mattcompiles! - Ensure code is compatible with node 12 -
Updated dependencies [
2c7abb1
]:- @vanilla-extract/integration@2.0.1
- Updated dependencies [
64791f3
]:- @vanilla-extract/integration@2.0.0
- #508
d15e783
Thanks @markdalgleish! - Addexports
field topackage.json
so nested package paths can be imported in a Node.js ESM context
-
#492
f2d2d9e
Thanks @benjervis! - Fix requiring of webpack loaderPreviously, the webpack plugin would reference itself as a loader by requiring
@vanilla-extract/webpack-plugin/loader
, but this was technically incorrect, and only worked because of the flat node_modules structure that yarn provides.When using a package manager like pnpm, which does not have a flat structure, this breaks.
This change uses relative references internally to ensure that the loader can always be required.
- #459
2719dc0
Thanks @mattcompiles! - Remove unused files and dependencies
-
#459
2719dc0
Thanks @mattcompiles! - Remove "Styles detected outside of '.css.(ts/js)' files" errorThis error could occasionally cause false positives, and was inconsistent with the rest of the integrations.
-
#341
0b743e7
Thanks @mattcompiles! - No longer require Babel to be run on .css.ts filesPreviously, the
@vanilla-extract/webpack-plugin
required the@vanilla-extract/babel-plugin
to be run over .css.ts files. In order to bring webpack inline with the other integrations, the@vanilla-extract/webpack-plugin
can now be used without Babel.Note: Automatic debug IDs still require the
@vanilla-extract/babel-plugin
.
-
#323
1e7d647
Thanks @mattcompiles! - Formatting of identifiers (e.g. class names, keyframes, CSS Vars, etc) can now be configured via theidentifiers
option which accepts eithershort
ordebug
.short
identifiers are a 7+ character hash. e.g.hnw5tz3
debug
identifiers contain human readable prefixes representing the owning filename and a potential rule level debug name. e.g.somefile_mystyle_hnw5tz3
import { vanillaExtractPlugin } from '@vanilla-extract/webpack-plugin'; vanillaExtractPlugin({ identifiers: 'short' });
BREAKING CHANGE
Previously identifiers were formatted as
short
whenprocess.env.NODE_ENV
was set to "production". By default, they will now be formatted according to webpack's mode config.
- Updated dependencies [
1e7d647
]:- @vanilla-extract/integration@1.2.0
-
#259
b8a6441
Thanks @markdalgleish! - Allow the result ofcomposeStyles
to be used in selectorsWhen style compositions are used in selectors, they are now assigned an additional class so they can be uniquely identified. When selectors are processed internally, the composed classes are removed, only leaving behind the unique identifier classes. This allows you to treat them as if they were a single class within vanilla-extract selectors.
import { style, globalStyle, composeStyles } from '@vanilla-extract/css'; const background = style({ background: 'mintcream' }); const padding = style({ padding: 12 }); export const container = composeStyles(background, padding); globalStyle(`${container} *`, { boxSizing: 'border-box', });
-
#260
c3d9d78
Thanks @mattcompiles! - Remove unused compiler cache -
Updated dependencies [
b8a6441
]:- @vanilla-extract/integration@1.1.0
- #208
a1c79fc
Thanks @markdalgleish! - Deprecate redundantallowRuntime
option
- #195
1099b34
Thanks @mattcompiles! - Fix issue when @vanilla-extract/webpack-plugin is nested within a separate node_modules folder
- #181
7a63af8
Thanks @mattcompiles! - Fix issue where CSS can be duplicated in some scenarios
- #171
84a8611
Thanks @mattcompiles! - Release v1
- Updated dependencies [
84a8611
]:- @vanilla-extract/integration@1.0.0
- #134
b99dd0a
Thanks @mattcompiles! - Move shared logic to integration package
- #53
58e4f8a
Thanks @mattcompiles! - Support exporting functions from.css.ts
files via recipes
-
#20
3311914
Thanks @mattcompiles! - Ensure generated hashes are scoped by packagevanilla-extract uses file path to ensure unique identifier (e.g. class names, CSS Variables, keyframes, etc) hashes across your application. This information is added to your
*.css.ts
files at build time. The issue with this approach is it meant*.css.ts
files couldn't be pre-compiled when being published to npm.This change adds support for pre-compilation of packages by adding package name information to identifier hashes.
- e83ad50: Initial release
- Updated dependencies [e83ad50]
- @vanilla-extract/css@0.1.0