Packages

postcss-import

17.0.1 · 13 Oct 2026MIT52.1M / weekRepositoryHomepagenpmAtom feed

Your version

59 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 17.x · latest line
  2. 17.0.1

    13 Oct 2026
    • Don't hoist empty @layer statements that follow @layer blocks

    • Handle uppercase/mixed-case @import and @layer declarations

  3. 17.0.0

    14 Aug 2026
    • Breaking

      Now requires Node v22+

    • Breaking

      Files with the same content, but different paths, will no longer be skipped as duplicates. This should not affect the vast majority of users. (#601, #602)

  4. 16.x
  5. 16.2.0

    12 Aug 2026
    • Better whitespace formatting on modern postcss versions

    • Better error message when @imports are interleaved with @layers (#566, #606)

    • Docs clarification

  6. 16.1.1

    17 Jun 2025
    • Fix incorrect cascade layer order when some resources can not be inlined (#567, #574)

  7. 16.1.0

    20 Mar 2024
    • Allow bundling URLs with fragments (useful for Vite users) (#560, #561)

  8. 16.0.1

    15 Feb 2024
    • Fix crash when handling some @imports with media conditions (#557, #558)

  9. 16.0.0

    3 Jan 2024
    • Breaking

      Require Node.js v18+ (#550, #551)

    • Breaking

      Signifigant rewrite, with small behavioral tweaks in a number of edge cases

    • Support for @supports conditional imports added (#532, #548)

  10. 15.x
  11. 15.1.0

    7 Dec 2022
    • Add data: URL support (this is not useful for most consumers)

  12. 15.0.1

    1 Dec 2022
    • Preserve layer in ignored @imports (#510, #511)

    • Join media queries in the correct order (#512, #513)

  13. 15.0.0

    30 Aug 2022
    • Breaking

      Require Node.js v14+

    • Breaking

      Require nameLayer option for handling anonymous layers

    • Fix handling of @media queries inside layered imports (#495, #496)

  14. 14.x
  15. 14.1.0

    22 Mar 2022
    • Add @layer support

  16. 14.0.2

    10 May 2021
    • Remove remaining direct import of postcss package (#455, #456)

  17. 14.0.1

    31 Mar 2021
    • Fix bug with @charset statements in media imports (#448, #453)

  18. 14.0.0

    14 Dec 2020
    • Breaking

      Error if multiple incompatible @charset statements

    • Breaking

      Warn if @charset statements are not at the top of files

    • Fix handing of @charset (#436, #447)

  19. 13.x
  20. 13.0.0

    20 Oct 2020
    • Breaking

      Require Node 10+

    • Breaking

      Upgrade to postcss v8 and require it as a peerDependency (#427, #432)

  21. 12.x
  22. 12.0.1

    23 Oct 2018
    • Add plugin property to dependency messages (#379, #380)

  23. 12.0.0

    4 Aug 2018
  24. 11.x
  25. 11.1.0

    10 Feb 2018
    • Added: filter option

  26. 11.0.0

    16 Sep 2017
    • Changed: A syntax error in an imported file now throws an error instead of just warning

    • Changed: Symlink handling to be consistent with Node.js require

  27. 10.x
  28. 10.0.0

    12 May 2017
    • Deprecated

      Removed: deprecated addDependencyTo option

    • Removed: Support for Node.js versions less than 4.5.x

    • Changed: Upgraded to Postcss v6

  29. 9.x
  30. 9.1.0

    10 Jan 2017
    • Added: addModulesDirectories option

  31. 9.0.0

    3 Dec 2016
    • Deprecated

      Changed: Deprecated addDependencyTo option, it is not needed if using
      postcss-loader >= v1.0.0

    • Removed: transform option

    • Removed: pkg-resolve is no longer a dependency; this should fix some issues
      with webpack. jspm users must manually install pkg-resolve if they want to
      load jspm modules (see github.com/postcss/postcss-import
      for more info)

  32. 8.x
  33. 8.2.0

    10 Nov 2016
    • Fixed: Warn about all @imports after other CSS declarations

    • Added: dependency message

  34. 8.1.3

    3 Nov 2016
  35. 8.1.2

    7 May 2016
    • Fixed: prevent JSPM to throw unrecoverable error

  36. 8.1.1

    4 May 2016
    • Fixed: JSPM support

  37. 8.1.0

    4 Apr 2016
    • Added: JSPM browser field

  38. 8.0.2

    27 Jan 2016
    • Fixed: Comments between imports statements are ignored

  39. 8.0.1

    27 Jan 2016
    • Fixed: missing "lib" folder

  40. 8.0.0

    27 Jan 2016
    • Removed: async mode/option (now async by default)

    • Removed: "bower_components" not supported by default anymore,
      use "path" option to add it back

    • Removed: encoding option. Encoding can be specified in custom load option

  41. 7.x
  42. 7.1.3

    5 Nov 2015
    • Fixed: ensure node 0.12 compatibility, round 2

  43. 7.1.2

    5 Nov 2015
    • Fixed: performance issue because of cloned options

  44. 7.1.1

    5 Nov 2015
    • Added: ensure node 0.12 compatibility

  45. 7.1.0

    19 Oct 2015
    • Added: option addDependencyTo to make the integration with webpack more
      elegant
      (ref postcss-loader#31)

  46. 7.0.0

    25 Aug 2015
    • Removed: compatibility with postcss v4.x

    • Added: compatibility with postcss v5.x

    • Added: lighter package by upgrading some dependencies

  47. 6.x
  48. 6.2.0

    21 Jul 2015
    • Added: skipDuplicates option now allows you to not skip duplicated files

  49. 6.1.1

    7 Jul 2015
    • Fixed: Prevent mutability issue, round 2

    • Added: plugins option, to run some postcss plugin on imported files

    • Added: bower_components is now part of the default paths

  50. 6.1.0

    7 Jul 2015

    This release was not respecting semver and introduced a major breaking change. It has been unpublished for now.

  51. 6.0.0

    17 Jun 2015
    • Changed: warnings messages are now using postcss message api (4.1.x)

    • Added: warning when a import statement has not been closed correctly

  52. 5.x
  53. 5.2.2

    19 Apr 2015
    • Fixed: globbed imports work for module directories

  54. 5.2.1

    17 Apr 2015
    • Fixed: glob import now works with single quote @import

  55. 5.2.0

    15 Apr 2015
    • Added: glob pattern are now supported if glob option is set to true

    • Added: plugin can now be added to PostCSS without calling it as a function

  56. 5.1.1

    10 Apr 2015
    • Fixed: regression of 5.1.0: files which only contain same @import rules were skip

  57. 5.1.0

    27 Mar 2015
    • Added: files with the same content will only be imported once. Previously, only the full path was used to determine if a file has already been imported in a given scope.
      Now, we also test create a hash with the content of the file to check if a file with the same content has not already been imported.
      This might be usefull if some modules you import are importing the same library from different places (eg: normalize might be as dep for several modules located in different places in node_modules)

  58. 5.0.3

    16 Feb 2015
    • Fixed: regression of 5.0.2: AST parent references were not updated

  59. 5.0.2

    14 Feb 2015
    • Fixed: indentation and code style are now preserved

  60. 5.0.1

    13 Feb 2015
    • Fixed: breaking bug with remote stylesheets (#21 & #22)

  61. 5.0.0

    26 Jan 2015
    • Added: compatibility with postcss v4.x

    • Removed: compatibility with postcss v3.x

    • Fixed: relative imports (./ and ../) should work using path option only (no need for from)

  62. 4.x
  63. 4.1.1

    5 Jan 2015
    • Fixed: irregular whitespace that throw syntax error in some environnements

  64. 4.1.0

    12 Dec 2014
    • Added: web_modules is now in module directories that are used to resolve @import (#13).

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.