Skip to content

Latest commit

 

History

History
335 lines (183 loc) · 19 KB

CHANGELOG.md

File metadata and controls

335 lines (183 loc) · 19 KB

@vanilla-extract/webpack-plugin

2.3.8

Patch Changes

2.3.7

Patch Changes

  • #1333 6ac9f66 Thanks @askoufis! - Use a more accurate regex for detecting webpack template strings in paths

    We 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.

2.3.6

Patch Changes

  • Updated dependencies [fdafb6d]:
    • @vanilla-extract/integration@7.0.0

2.3.5

Patch Changes

2.3.4

Patch Changes

2.3.3

Patch Changes

2.3.2

Patch Changes

2.3.1

Patch Changes

  • #1180 89224fe Thanks @syfxlin! - Fixes Next.js 13 CSS output on Windows when using React Server Components

2.3.0

Minor Changes

2.2.0

Minor Changes

  • #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.

Patch Changes

2.1.12

Patch Changes

2.1.11

Patch Changes

  • Updated dependencies [e373b51]:
    • @vanilla-extract/integration@5.0.0

2.1.10

Patch Changes

  • #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

2.1.9

Patch Changes

  • #647 3c9b7d9 Thanks @mattcompiles! - Use more realistic file paths for virtual CSS files

  • Updated dependencies [3c9b7d9]:

    • @vanilla-extract/integration@4.0.0

2.1.8

Patch Changes

  • #634 69b8460 Thanks @phil-lgr! - Add fileName to the CSS virtual loader params

    This allows users to identify the source file for vanilla-extract css imports

2.1.7

Patch Changes

2.1.6

Patch Changes

2.1.5

Patch Changes

2.1.4

Patch Changes

  • Updated dependencies [64791f3]:
    • @vanilla-extract/integration@2.0.0

2.1.3

Patch Changes

  • #508 d15e783 Thanks @markdalgleish! - Add exports field to package.json so nested package paths can be imported in a Node.js ESM context

2.1.2

Patch Changes

  • #492 f2d2d9e Thanks @benjervis! - Fix requiring of webpack loader

    Previously, 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.

2.1.1

Patch Changes

  • #459 2719dc0 Thanks @mattcompiles! - Remove "Styles detected outside of '.css.(ts/js)' files" error

    This error could occasionally cause false positives, and was inconsistent with the rest of the integrations.

2.1.0

Minor Changes

  • #341 0b743e7 Thanks @mattcompiles! - No longer require Babel to be run on .css.ts files

    Previously, 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.

Patch Changes

  • Updated dependencies [50bae14, 0b743e7]:
    • @vanilla-extract/integration@1.3.0

2.0.0

Major Changes

  • #323 1e7d647 Thanks @mattcompiles! - Formatting of identifiers (e.g. class names, keyframes, CSS Vars, etc) can now be configured via the identifiers option which accepts either short or debug.

    • 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 when process.env.NODE_ENV was set to "production". By default, they will now be formatted according to webpack's mode config.

Patch Changes

  • Updated dependencies [1e7d647]:
    • @vanilla-extract/integration@1.2.0

1.1.0

Minor Changes

  • #259 b8a6441 Thanks @markdalgleish! - Allow the result of composeStyles to be used in selectors

    When 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',
    });

Patch Changes

1.0.3

Patch Changes

1.0.2

Patch Changes

  • #195 1099b34 Thanks @mattcompiles! - Fix issue when @vanilla-extract/webpack-plugin is nested within a separate node_modules folder

1.0.1

Patch Changes

1.0.0

Major Changes

Patch Changes

  • Updated dependencies [84a8611]:
    • @vanilla-extract/integration@1.0.0

0.3.1

Patch Changes

0.3.0

Minor Changes

Patch Changes

0.2.1

Patch Changes

0.2.0

Minor Changes

  • #20 3311914 Thanks @mattcompiles! - Ensure generated hashes are scoped by package

    vanilla-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.

Patch Changes

0.1.0

Minor Changes

  • e83ad50: Initial release

Patch Changes

  • Updated dependencies [e83ad50]
    • @vanilla-extract/css@0.1.0