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

babel-plugin-import

Package Overview
Dependencies
Maintainers
2
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-import - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

6

lib/Plugin.js

@@ -34,3 +34,3 @@ 'use strict';

var transformedMethodName = this.camel2DashComponentName ? camel2Dash(methodName) : methodName;
var path = (0, _path.join)(this.libraryName, libraryDirectory, transformedMethodName);
var path = winPath((0, _path.join)(this.libraryName, libraryDirectory, transformedMethodName));
this.selectedMethods[methodName] = file.addImport(path, 'default');

@@ -230,2 +230,6 @@ if (style === true) {

}
function winPath(path) {
return path.replace(/\\/g, '/');
}
module.exports = exports['default'];

2

package.json
{
"name": "babel-plugin-import",
"version": "1.0.0",
"version": "1.0.1",
"description": "Component modular import plugin for babel.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -97,4 +97,4 @@ # babel-plugin-import

- `["antd", [{ "libraryName": "antd" }]]`: import js modularly
- `["antd", [{ "libraryName": "antd", "style": true }]]`: import js and css modularly (less source files)
- `["antd", [{ "libraryName": "antd", "style": "css" }]]`: import js and css modularly (css built files)
- `["import", [{ "libraryName": "antd" }]]`: import js modularly
- `["import", [{ "libraryName": "antd", "style": true }]]`: import js and css modularly (less source files)
- `["import", [{ "libraryName": "antd", "style": "css" }]]`: import js and css modularly (css built files)
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