Ember CLI Preprocessor Registry (npm: `ember-cli-preprocess-registry`) is an internal utility package within the Ember CLI ecosystem, providing a centralized registry for managing various preprocessors for `css`, `template`, and `js` assets. It is currently at version 5.0.1 and primarily maintained as needed for Ember CLI development, without a strict independent release cadence. Its key differentiator is its deep integration into Ember CLI's build pipeline, offering a standard way for addons to register and interact with asset transformations via hooks like `setupPreprocessorRegistry`. This package is not typically consumed directly by end-user applications but is a core component for Ember CLI addons wishing to extend asset compilation.
npm install ember-cli-preprocess-registryVerified import paths — ran on the pinned version, not inferred.
Demonstrates how an Ember CLI addon uses the `setupPreprocessorRegistry` hook to add a custom JavaScript preprocessor to the build pipeline.
Upgrade your Node.js installation to version 16 or 18+.
Refactor template preprocessors to use modern Ember CLI plugin patterns. Legacy template plugins are no longer supported and must be rewritten.
Ensure you are using `ember-cli-preprocess-registry@5.0.1` or later if your addon relies on removing plugins by name.
Ensure your preprocessor plugin object includes a `name` property (getter) and a `toTree` method that accepts a Broccoli tree and returns a new/modified tree.
Upgrade your Node.js environment to version 16 or 18 and above. For example, use `nvm install 18 && nvm use 18`.
Verify that your `setupPreprocessorRegistry` hook correctly receives the `registry` argument and that any conditional logic for `type` allows the `registry` object to be used when appropriate (e.g., `if (type === 'parent')`).
Add a `name` getter to your plugin object, e.g., `get name() { return 'my-plugin'; }`.No dependency data recorded yet.