{"library":"babel-plugin-transform-assets-import-to-string","type":"library","category":null,"description":"Babel plugin that transforms asset imports and requires (e.g., images, SVGs) into CDN URL strings with content-based hashing. Version 2.0.0 is the current stable release, requiring Node.js 20+ and @babel/core ^7.20.0. It supports both ESM import and CommonJS require, configurable file extensions, hash length, output directory for copying assets, and path preservation. Differentiators include isomorphic/SSR focus, TypeScript typings, and simple setup without a module bundler. Release cadence is low; the plugin has had only a few updates since its initial 1.0.0 release.","language":"javascript","status":"active","version":"2.0.0","tags":["javascript","babel","babel-plugin","import","assets","cdn","images","isomorphic","server-side-rendering","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-transform-assets-import-to-string","imports":["import plugin from 'babel-plugin-transform-assets-import-to-string'","import type { BabelPluginOptions } from 'babel-plugin-transform-assets-import-to-string'","import assetsToCDN from 'babel-plugin-transform-assets-import-to-string'"]},{"cmd":"yarn add babel-plugin-transform-assets-import-to-string","imports":[]},{"cmd":"pnpm add babel-plugin-transform-assets-import-to-string","imports":[]}],"homepage":null,"github":"https://github.com/yeojz/babel-plugin-transform-assets-import-to-string","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-transform-assets-import-to-string","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-transform-assets-import-to-string/compatibility"}}