Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@babel/plugin-syntax-import-attributes

Package Overview
Dependencies
Maintainers
4
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-syntax-import-attributes

Allow parsing of the module attributes in the import statement

  • 7.26.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
23M
increased by5.62%
Maintainers
4
Weekly downloads
 
Created

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

The @babel/plugin-syntax-import-attributes package allows Babel to parse import statements with attributes, which is a proposal for ECMAScript to allow additional metadata to be provided with import statements. This plugin only allows Babel to parse this syntax and does not transform it. It is useful for developers who want to use the proposed import attributes syntax in their codebase and ensure that Babel can correctly understand it.

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

Parsing import statements with attributes

This feature allows Babel to parse import statements that include an 'assert' clause with attributes. This is part of a stage 3 proposal to allow asserting certain conditions on imported modules.

import json from './data.json' assert { type: 'json' };

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

Keywords

FAQs

Package last updated on 25 Oct 2024

Did you know?

Socket

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc