1.0.10 • Published 3 years ago
babel-plugin-cdn-import v1.0.10
Install
yarn add -D babel-plugin-cdn-import
or
npm i -D babel-plugin-cdn-import
Usage
Please check the example of this repo.
Options
cdn
The host url of the cdn provider, for example https://cdnjs.com, https://unpkg.com, https://skypack.dev
webpackIgnore
if build application with webpack, set webpackIgnore to true;
fallback
If fallback is set, will try to load resources from cdn, then fallback
matches
Only matched package will transpile to use CDN resources.