Giter Site home page Giter Site logo

Comments (8)

jakewhelan avatar jakewhelan commented on August 22, 2024 1

Thanks for arousing my interest @StabbarN, I've since discovered this indeed works with Babel 7 - you just need to require it rather than using the string literal reference as instructed in the README.

module.exports = {
  presets: [
    '@babel/preset-env'
  ],
  plugins: [
    require('babel-plugin-angularjs-annotate'),
    'proposal-optional-chaining'
  ]
}

Though now that I think about it, this should also work just fine:

module.exports = {
  presets: [
    '@babel/preset-env'
  ],
  plugins: [
    'angularjs-annotate',
    'proposal-optional-chaining'
  ]
}

I think all the package naming changes just threw me off.

from babel-plugin-angularjs-annotate.

p3x-robot avatar p3x-robot commented on August 22, 2024

same here, stopped working with @babel 7

from babel-plugin-angularjs-annotate.

p3x-robot avatar p3x-robot commented on August 22, 2024

did you disabled mangling? like before it worked, i upgraded something and now i have to disable mangling...

from babel-plugin-angularjs-annotate.

p3x-robot avatar p3x-robot commented on August 22, 2024

looks like babel has changed something i think

from babel-plugin-angularjs-annotate.

p3x-robot avatar p3x-robot commented on August 22, 2024

#40 (comment)

from babel-plugin-angularjs-annotate.

schmod avatar schmod commented on August 22, 2024

@p3x-robot This repo is maintained. Please feel free to open a PR if you'd like to fix this.

from babel-plugin-angularjs-annotate.

StabbarN avatar StabbarN commented on August 22, 2024

I use this plugin together with babel 7 without any problems.

from babel-plugin-angularjs-annotate.

pioug avatar pioug commented on August 22, 2024

I created a PR #43. I am not very sure of my changes since I don't follow closely the evolution of Babel but tests are passing 🙏

from babel-plugin-angularjs-annotate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.