1.3.1 • Published 2 months ago

@talend/babel-plugin-assets-api v1.3.1

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
2 months ago

@talend/babel-plugin-assets-api

This plugin is underground friends of @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:

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

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

into this code needed for runtime:

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.

1.3.1

2 months ago

1.3.0

3 months ago

1.2.1

5 months ago

1.2.0

6 months ago

1.1.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago