0.0.8 • Published 4 years ago
babel-plugin-third-party-imports v0.0.8
babel-plugin-third-party-imports
Appends https://third_party/
to all imports that reference packages.
For example
import * from 'something';
Becomes
import * from 'https://third_party/?name=something&from=/path/to/file';
This is useful because imports that aren't urls or relative paths are invalid in browsers. Transforming them allows a server or proxy to redirect them to a compiled bundle.