postcss-parcel-import is a PostCSS plugin, currently at version 0.0.2, designed as a temporary workaround for a specific `@import` bug (issue #1165) encountered in older versions of `parcel-bundler`. The plugin introduces a custom `@parcel-import` at-rule, which Parcel v1 users could leverage to ensure CSS `@import` rules were correctly processed before other PostCSS transformations. This package has seen no updates since 2018, coinciding with the closure of the Parcel issue it addressed and the deprecation of `parcel-bundler` (Parcel v1) in favor of Parcel v2. It differentiates itself by providing a very specific, now obsolete, syntax extension to handle a bug that has long since been resolved in the Parcel ecosystem. Its release cadence was minimal, comprising a single version.
npm install postcss-parcel-importVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to load and apply the `postcss-parcel-import` plugin using the PostCSS API.
Migrate to Parcel v2 (`parcel` package) where the original bug is resolved. Do not use `postcss-parcel-import` with modern Parcel versions. For standard CSS `@import` handling, Parcel's built-in capabilities or `postcss-import` are typically sufficient.
Replace all instances of `@parcel-import` with standard `@import` rules, and ensure your build setup correctly handles CSS imports (e.g., using `postcss-import` if needed, or relying on Parcel's native import resolution).
Avoid using this package in new projects. For existing projects, prioritize migration away from Parcel v1 and this plugin.
`npm install postcss-parcel-import` or `yarn add postcss-parcel-import`
Ensure that your PostCSS plugin order correctly places import-handling plugins (like `postcss-import`) at the beginning of the plugin chain, *before* any plugins that consume imported CSS features such as variables or mixins. For Parcel v2, rely on its native `@import` resolution or `postcss-import` in your `.postcssrc` file.