🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@hqjs/babel-plugin-transform-namespace-imports

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hqjs/babel-plugin-transform-namespace-imports

Transform namespace imports into default imports

Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
65
22.64%
Maintainers
1
Weekly downloads
 
Created
Source

https://hqjs.org

Transform namespace imports into default imports

Installation

npm install hqjs@babel-plugin-transform-namespace-imports

Usage

{
  "plugins": [["hqjs@babel-plugin-transform-namespace-imports", {
    "packages": ["React", "ReactDOM"]
  }]]
}

Transformation

Transforms namespace imports into default imports to meet specification requirements

import * as React from 'react';
import * as ReactDOM from 'react-dom';

we will obtain

import React from 'react';
import ReactDOM from 'react-dom';

Keywords

babel

FAQs

Package last updated on 18 Feb 2020

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