Comments (7)
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.
Thank you for this very useful plugin, it saves a lot of time.
from babel-plugin-captains-log.
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.
Thank you!
from babel-plugin-captains-log.
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.
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.
I appreciate that.
from babel-plugin-captains-log.
Related Issues (13)
- Roadmap to V1 HOT 2
- Doesn't work with eslint-loader HOT 9
- Add marcos support HOT 1
- Add Contributing Docs
- Trim Appended Filename HOT 16
- Performance concerns HOT 2
- Cannot find module 'babel-runtime/helpers/typeof' HOT 17
- The automated release is failing 🚨 HOT 1
- Need source file names HOT 8
- Inject on Alias on console HOT 2
- Module build failed HOT 2
- Variable name injected twice HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from babel-plugin-captains-log.