Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
openbooknoobdeveloper opened this issue Nov 30, 2020 · 0 comments

Comments

@openbooknoobdeveloper
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant