# @talend/babel-plugin-assets-api

> This plugin is underground friends of [@talend/assets-api](https://npmjs.com/package/@talend/assets-api) package.

Latest version **1.6.1** (published 2025-10-15) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @talend/babel-plugin-assets-api
pnpm add @talend/babel-plugin-assets-api
yarn add @talend/babel-plugin-assets-api
bun add @talend/babel-plugin-assets-api
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 1.6.1 |
| Published | 2025-10-15 |
| First published | 2022-03-03 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 8.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 159 |
| Author | Talend Frontend |
| Maintainers | talend-frontend |

## Links

- npm: https://www.npmjs.com/package/@talend/babel-plugin-assets-api
- Repository: https://github.com/Talend/ui
- Homepage: https://github.com/Talend/ui#readme
- Issues: https://github.com/Talend/ui/issues
- npm.io page: https://npm.io/package/@talend/babel-plugin-assets-api

## Dependencies (2)

- [read-pkg-up](https://npm.io/package/read-pkg-up.md) ^7.0.1
- [@talend/module-to-cdn](https://npm.io/package/@talend/module-to-cdn.md) ^9.15.0

## Recent versions

- 1.6.1 (latest) — 2025-10-15
- 1.6.0 — 2025-09-09
- 1.5.0 — 2025-07-09
- 1.4.2 — 2025-06-27
- 1.4.1 — 2025-06-19
- 1.4.0 — 2024-06-13
- 1.3.1 — 2024-02-29
- 1.3.0 — 2024-02-02
- 1.2.1 — 2023-12-01
- 1.2.0 — 2023-11-15
- 1.1.0 — 2022-06-02
- 1.0.2 — 2022-03-04
- 1.0.1 — 2022-03-04
- 1.0.0 — 2022-03-03

## README

# @talend/babel-plugin-assets-api

This plugin is underground friends of [@talend/assets-api](https://npmjs.com/package/@talend/assets-api) package.

Because we care about developer experience and because no one want to maintain in the code base versions of packages we have decided to propose this babel plugin.

It transform the following code:

```javascript
import assetsAPI from '@talend/assets-api';

assetsAPI.getURL('/', 'react');
assetsAPI.getJSON('/foo.json', 'react');
assetsAPI.getUMD('react');
```

into this code needed for runtime:

```javascript
import assetsAPI from '@talend/assets-api';

assetsAPI.getURL('/', 'react', '16.14.0');
assetsAPI.getJSON('/foo.json', 'react', '16.14.0');
assetsAPI.getUMD('react', '16.14.0', 'React', '/umd/react.production.min.js');
```

As you can see it uses production path in the getUMD.

---
_Source: https://npm.io/package/@talend/babel-plugin-assets-api · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
