Skip to content

Upgrade postcss to 8 #293

Open
Open

Description

@winston0410

I hope this plugin could upgrade its PostCSS version to 8, which is needed for many plugins and it is backward compatible with PostCSS 7

Activity

  1. Repository owner deleted a comment from birdofpreyru on Nov 26, 2020
  2. gajus commented on Nov 26, 2020

    @gajus
    Owner

    Contributions are welcome.

  3. mikkpokk commented on Oct 13, 2021

    @mikkpokk

    This ticket needs to be high priority already. Very many packages are migrated to postcss 8 but babel-plugin-react-css-modules are the one which resists to apply those upgrades.

    Because of that, many projects have to continue using old vulnerable packages.

    Of course I can help upgrading the module, but I believe there are many other contributors who are able to done the job faster since they know under-the-hood of the plugin.

    https://evilmartians.com/chronicles/postcss-8-plugin-migration

  4. aaabinbin commented on Jan 11, 2022

    @aaabinbin

    I have the same pro, I use postcss-nested & less but error

    plugins: [
        [
          'react-css-modules',
          {
            filetypes: {
              '.less': {
                syntax: 'postcss-less',
                plugins: ['postcss-nested'],
              },
            },
            autoResolveMultipleImports: true,
            webpackHotModuleReloading: true,
            exclude: 'node_modules',
            generateScopedName: process.env.NODE_ENV === 'development' ? '[local]_[hash:base64:6]' : '[hash:base64:6]'
          },
        ],
      ],
    error: PostCSS plugin postcss-nested requires PostCSS 8
    /node_modules/babel-plugin-react-css-modules/node_modules/postcss/lib/processor.es6:117:15
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions