Utilities for managing Babel plugins in Ember CLI apps and addons. Provides functions to check, find, and add plugins (hasPlugin, findPlugin, addPlugin) while preventing duplicate registrations. Targets can be EmberApp, Addon instances, or arrays. Handles Babel's plugin name normalization, including scoped packages and Windows path fixes. Current stable version 1.1.1, ships TypeScript types. Minimal dependencies; primarily for addon authors who need to ensure specific Babel plugins are present in a parent project without collisions.
npm install ember-cli-babel-plugin-helpersVerified import paths — ran on the pinned version, not inferred.
Shows how an Ember addon uses hasPlugin and addPlugin to conditionally add a Babel plugin if not already present.
Replace import { hasPlugin } from 'ember-cli-babel-plugin-helpers' with const { hasPlugin } = require('ember-cli-babel-plugin-helpers')Upgrade to >=1.0.2 or normalize manually using the package's internal normalization (not exposed).
Ensure target is either the parent from included(), an array of plugins, or has a babel property with plugins array.
N/A (no real breaking change documented)
Review existing plugin order; call addPlugin only if constraints can be satisfied, or catch errors.
Replace with const { hasPlugin } = require('ember-cli-babel-plugin-helpers') in your code.Run npm install ember-cli-babel-plugin-helpers --save-dev (or yarn add --dev) in your Ember addon project.
Pass a string (plugin name) or an array [name, options?, identifier?] as the second argument.
Use the parent from the addon's included hook, or pass an explicit array of plugin configurations.
No dependency data recorded yet.