{"library":"babel-plugin-named-asset-import","type":"library","category":null,"description":"Babel plugin for Create React App that enables named imports from non-JS assets like images, SVGs, and CSS modules. Current stable version is 0.3.8. Ships as part of react-scripts, so its release cadence matches CRA major versions. It transforms named import specifiers (e.g., { ReactComponent } from 'logo.svg') into static asset paths, thus requiring CRA-specific webpack configuration to work. Unlike direct asset require() calls, this plugin allows tree-shaking friendly imports. Note: only compatible with @babel/core ^7.1.0.","language":"javascript","status":"active","version":"0.3.8","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-named-asset-import","imports":["module.exports = require('babel-plugin-named-asset-import')","import { ReactComponent } from './logo.svg'","import { large } from './logo.svg?as=svg'"]},{"cmd":"yarn add babel-plugin-named-asset-import","imports":[]},{"cmd":"pnpm add babel-plugin-named-asset-import","imports":[]}],"homepage":"https://create-react-app.dev/","github":"https://github.com/facebook/create-react-app","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-named-asset-import","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/babel-plugin-named-asset-import/compatibility"}}