Socket
Socket
Sign inDemoInstall

@babel/plugin-syntax-import-meta

Package Overview
Dependencies
54
Maintainers
6
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Protect your apps from supply chain attacks

Install

@babel/plugin-syntax-import-meta

Allow parsing of import.meta

    7.10.4latest
    GitHub
    npm

Version published
Maintainers
6
Weekly downloads
24,119,769
increased by3.47%

Weekly downloads

Package description

What is @babel/plugin-syntax-import-meta?

The @babel/plugin-syntax-import-meta npm package allows Babel to parse the import.meta syntax, which is a meta-property exposing context-specific metadata to a JavaScript module. This plugin only allows Babel to parse this syntax; it doesn't implement any transformation.

What are @babel/plugin-syntax-import-meta's main functionalities?

Parsing import.meta syntax

This feature enables Babel to understand and parse the import.meta syntax, which is typically used to get information about the module itself, like its URL.

console.log(import.meta); // { url: 'file:///path/to/current/module.js' }

Other packages similar to @babel/plugin-syntax-import-meta

Readme

Source

@babel/plugin-syntax-import-meta

Allow parsing of import.meta

See our website @babel/plugin-syntax-import-meta for more information.

Install

Using npm:

npm install --save-dev @babel/plugin-syntax-import-meta

or using yarn:

yarn add @babel/plugin-syntax-import-meta --dev

Keywords

FAQs

Last updated on 30 Jun 2020

Did you know?

Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the 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