🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

babel-plugin-third-party-imports

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-third-party-imports

Appends `https://third_party/` to all imports that reference packages.

latest
Source
npmnpm
Version
0.0.8
Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 06 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts