Code Monkey home page Code Monkey logo

Comments (7)

kwelch avatar kwelch commented on June 9, 2024 1

This was fixed and released as v0.6.1.

Additionally, I have released v0.7.0 that sets injectScope to false by default. See the release notes for a deeper explanation.

from babel-plugin-captains-log.

mqklin avatar mqklin commented on June 9, 2024 1

Thank you for this very useful plugin, it saves a lot of time.

from babel-plugin-captains-log.

kwelch avatar kwelch commented on June 9, 2024

Yes, this I know what this is. I need to work on the defaults/option resolution. Additionally, I want to remove injectScope as a default and move it to experimental as it doesn't work properly. See #10.

I will set some time aside tonight to resolve this.

from babel-plugin-captains-log.

mqklin avatar mqklin commented on June 9, 2024

Thank you!

from babel-plugin-captains-log.

mqklin avatar mqklin commented on June 9, 2024

Personally I use only injectVariableName (because usually I debug only one file on time, but sometimes many console.log there ), so my config now is ['captains-log', {injectFileName: false}],.

from babel-plugin-captains-log.

kwelch avatar kwelch commented on June 9, 2024

Ok good to know. If you have any suggestions on how to make that smoother let me know. I prefer to give as much flexibility as possible, but options is an odd time to make the choice.

I am glad you like name injection, that is the main reason I wrote this. I really want to expand it beyond variables, to methods or object properties.

Feel free to open any issues for enhancements as well. Thanks!

from babel-plugin-captains-log.

kwelch avatar kwelch commented on June 9, 2024

I appreciate that.

from babel-plugin-captains-log.

Related Issues (13)

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.