New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-symlink-import

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-symlink-import

An awesome package

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
129
decreased by-11.03%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status

Import and compile local npm packages.

By default with babel-register and by convention with other Babel workflows, JavaScript files within node_modules will not be compiled, even if their containing directories are symlinks to directories outside of node_modules. This plugin aims to enable that usecase.

Installing

Install it locally to your project by running:

yarn add --dev babel-plugin-symlink-import

Add the plugin to your Babel configuration:

{
  "plugins": ["symlink-import"]
}

Usage

Given that your package.json contains:

{
  "name": "project",
  "dependencies": {
    "local-package": "./lib/local-package"
  }
}

You can import files from the local library:

import localPackage from 'local-package'

and Babel will compile them instead of ignoring them because they are in the node_modules directory.

FAQs

Package last updated on 07 Aug 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc