babel-plugin-third-party-imports

0.0.8 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i babel-plugin-third-party-imports

Weekly Downloads

1

Version

0.0.8

License

MIT

Unpacked Size

2.72 kB

Total Files

3

Last publish

Collaborators

  • arjun27
  • joeleinbinder