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

@parcel/transformer-js

Package Overview
Dependencies
Maintainers
1
Versions
875
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parcel/transformer-js

  • 2.12.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
338K
decreased by-22.95%
Maintainers
1
Weekly downloads
 
Created

What is @parcel/transformer-js?

@parcel/transformer-js is a JavaScript transformer for Parcel, a web application bundler. It handles the transformation of JavaScript files, including modern JavaScript syntax, JSX, TypeScript, and more, into a format that can be understood by browsers.

What are @parcel/transformer-js's main functionalities?

Transforming Modern JavaScript

This feature allows you to transform modern JavaScript syntax (ES6+) into a format that is compatible with older browsers.

module.exports = function (bundler) {
  bundler.addAssetType('js', require.resolve('@parcel/transformer-js'));
};

Handling JSX

This feature enables the transformation of JSX syntax, commonly used with React, into standard JavaScript.

module.exports = function (bundler) {
  bundler.addAssetType('jsx', require.resolve('@parcel/transformer-js'));
};

TypeScript Support

This feature allows you to transform TypeScript files into JavaScript, making it possible to use TypeScript in your projects.

module.exports = function (bundler) {
  bundler.addAssetType('ts', require.resolve('@parcel/transformer-js'));
};

Other packages similar to @parcel/transformer-js

FAQs

Package last updated on 28 Feb 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