A babel plugin which automatically enables source-map support for v8 stack traces.
npm install babel-plugin-source-map-support
$ 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();
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
0.0.1
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.