Where to put babelOptions?


#1

I want to use babelOptions: {sourceMap: ‘inline’}, but I don’t know where to insert the babelOptions.

I’ve tried these:

build.js:

var stealTools = require('steal-tools');
//var babel = require('babel-core');

stealTools.build({
        config: __dirname + '/package.json!npm'
    },
    {
        bundleSteal: true,
        minify: true,
        babelOptions: {
            sourceMap: 'inline'
        }
    }
);

and/or in package.json:

"steal": {
    "babelOptions": {
      "sourceMap": "inline"
    }
  },

neither one of them has any effect. Am I doing something wrong here?


#2

I haven’t tried it, but I think the option is sourceMaps. You can check out their options here: https://babeljs.io/docs/usage/api/.