Skip to content

A babel plugin which automatically enables source-map support for v8 stack traces

Notifications You must be signed in to change notification settings

mariodu/babel-plugin-source-map-support

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

babel-plugin-source-map-support

npm status build status

A babel plugin which automatically enables source-map support for v8 stack traces.

INSTALL

npm install babel-plugin-source-map-support

SYNOPSIS

$ cat test.js

import foo from 'foo';
import bar from 'bar';

test();

$ babel test.js

'use strict';

var foo = require('foo');
var bar = require('bar');

test();

$ babel --plugins source-map-support test.js

'use strict';

require('source-map-support/register');

var foo = require('foo');
var bar = require('bar');

test();

DESCRIPTION

This is a Babel plugin which prepends a statement equivalent to the following to source files:

require('source-map-support/register');

Note: this module doesn't install the source-map-support module. That should be installed separately:

npm install source-map-support --save

SEE ALSO

VERSION

0.0.1

AUTHOR

chocolateboy

COPYRIGHT AND LICENSE

Copyright © 2015 by chocolateboy

This module is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0.

About

A babel plugin which automatically enables source-map support for v8 stack traces

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%