Coder Social home page Coder Social logo

babel-plugin-open-source's Introduction



Alt + Click on rendered JSX to open it's source code in VSCode

 

install

yarn add babel-plugin-open-source --dev

 

usage

Add the plugin to your babel config.

// .babelrc
{
   "plugins": [
      "babel-plugin-open-source",
      { editor:"vscode" } // optional, default: "vscode". options: vscode | vscode-insiders | sublime | atom | phpstorm | github
    ]
}

If folks in your team use different editors, you can customise the editor just for you by adding the key BABEL_OPEN_SOURCE_EDITOR in your .env file.


Docs for changing babel config: Nextjs | create react app

 

like it?

⭐ this repo

 

license

MIT © siddharthkp

babel-plugin-open-source's People

Contributors

alt1o avatar ka2n avatar kvodnon avatar shubhamverma1811 avatar siddharthkp avatar yannbf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

babel-plugin-open-source's Issues

Support jetbrains

Can you add support for jetbrains IDE or more like vim ?

For jetbrains you can do like this for url phpstorm://open?file=/Users/..../foo.js&line=24

I think, you can choose ide by .env variable and get in file with process.env.IDE_EXAMPLE_VAR_NAME === 'PhpStorm'
Default vscode if .env is not configure.

What do you think ?

Thanks in advance

[Windows] VSCode not open when alt + click

Hi. I install package with npm, set package name in babel config as packages. Open localhost site, hold alt and click LMB, opened new browser window with file url location and it close. VSCode don't open file. How i can resolve it?
OS: Windows 10

Documentation on how it works.

Small docs for beginners to understand how is it actually working.

I would like to work on this if you approve this :)

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.