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

babel-plugin-node-sourcemap-support

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-node-sourcemap-support

Adds support for sourcemaps to a node app.

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-60%
Maintainers
1
Weekly downloads
 
Created
Source

babel-plugin-node-sourcemap-support

Adds support for sourcemaps to a node app in a hacky fashion.

The plugin shamefully depends on adding a module to your project directory. A require statement is inserted into your entry files to require the source-map-support module.

It can be argued that it is a better idea to install source-map-support into your project and require it yourself.

install

npm install babel-plugin-node-sourcemap-support

example

.babelrc

{
  "plugins": [
    ["node-sourcemap-support", {
      "src": "./path/to/src",
      "dest": "./path/to/out/dir",
      "entries": [
        "app.js",
        "foo/bar.js"
      ]
    }]
  ]
}
babel --source-maps inline ./path/to/src --out-dir ./path/to/out/dir

options

src: string, ./src

path to source files directory

dest: string, ./build

path to transpiled files directory

entries: [], ['index.js']

array of app entry file paths, relative to src

supportModulePath: string, _build-modules/source-map-support-register.js

path where the module will be added, relative to dest

cache: boolean, true

You probably should not turn this off. It prevents the support module from being redundantly copied to dest every time babel transpiles a file.

Keywords

FAQs

Package last updated on 09 Feb 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