grunt-babel icon indicating copy to clipboard operation
grunt-babel copied to clipboard

gunt-babel Warning: Using removed Babel 6 option: .sourceMapTarget

Open openbooknoobdeveloper opened this issue 3 years ago • 0 comments

my grunt-babel it is not working for a reason, not sure what it is going on, can someone help me?

package.json

  "devDependencies": {
    "@babel/core": "*",
    "babel-core": "*",
    "babel-loader": "*",
    "@babel/preset-env": "*",
    "grunt": "*",
    "grunt-babel": "*",
    "load-grunt-tasks": "*"
  }

}

gruntfile.js

var babel;
config.babel = babel = {};
  
config.babel = {
  options: {
    sourceMap: true,
    inputSourceMap: grunt.file.readJSON('public/myapp.production.js.map'),
    presets: ['@babel/preset-env']
  },
  dist: {
    files: {
      'public/test-babel-main.js': 'public/test-babel-main.js'
    }
  }
};

after run: grunt babel

Running "babel:dist" (babel) task
Warning: Using removed Babel 6 option: .sourceMapTarget - The `sourceMapTarget` option has been removed because it makes more sense for the tooling that calls Babel to assign `map.file` themselves. Use --force to continue.

Aborted due to warnings.


Execution Time (2020-11-30 15:59:33 UTC-0)
loading tasks  843ms  ███████████████████████████████████████████████ 99%
Total 848ms

openbooknoobdeveloper avatar Nov 30 '20 16:11 openbooknoobdeveloper