Socket
Socket
Sign inDemoInstall

@babel/plugin-syntax-import-meta

Package Overview
Dependencies
54
Maintainers
6
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-syntax-import-meta

Allow parsing of import.meta


Version published
Maintainers
6
Weekly downloads
22,640,285
decreased by-6.29%

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 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