Skip to content

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

@openbooknoobdeveloper

Description

@openbooknoobdeveloper

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions