New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-transform-es2015-modules-nej

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-es2015-modules-nej

transform es6 module to nej module

  • 1.1.0
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

将es6的模块语法转换为nej的模块语法

此插件由babel官方插件:babel-plugin-transform-es2015-modules-amd改编而成,务必配合babel-presets-env同时使用

nej和es6对照

  1. 输出结果集空间
export {xxx, xxx, xxx}
  1. 其他注入参数(不建议使用) 在es6中,引入的对象为只读对象,因此使用时必须将对象复制出来使用
import {o, f, r} form 'nej';
let obj = o, func = f, arr = r;

3. 资源后缀

  • 对于javascript资源,是否需要文件扩展名,保持和nej语法一致
  • 对于css,html,json资源,无需添加前缀标识
  • 不支持regular!前缀标识

FAQs

Package last updated on 28 Nov 2017

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