Socket
Socket
Sign inDemoInstall

babel-plugin-insert-pathname

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    babel-plugin-insert-pathname

Babel plugin, which allows to add filename as an argument into function call


Version published
Maintainers
1
Install size
231 kB
Created

Readme

Source

Специфический babel.plugin для добавления имени компонента к вызову фабрики компонента

Фабрика имеет вид:

Components.build({
    create() {

    },
    ...
})

Матчимся на это знание и добавляем также информацию о компоненте:

Components.build({
    create() {

    },
    componentName: 'bla-bla',
    ...
})
Установка
yarn add --dev @hh.ru/babel-plugin-insert-pathname

Добавить @hh.ru/babel-plugin-insert-pathname в .babelrc файл:

{
    "plugins": ["@hh.ru/babel-plugin-insert-pathname"]
}

FAQs

Last updated on 24 Sep 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc