Skip to content

Latest commit

 

History

History
88 lines (55 loc) · 1.94 KB

README.md

File metadata and controls

88 lines (55 loc) · 1.94 KB

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.