This plugin handles Flow, TypeScript, JSX, and ES modules.
This plugin is required by js-bundle.
Strip flow types from assets.
Packages using flow must have flow-bin in their devDependencies
.
Strip types from .ts
and .tsx
assets.
The typescript plugin is required for TypeScript assets to be recognized.
The jsx plugin is required for .tsx
assets to be recognized.
Transform JSX to valid Javascript.
Assets containing JSX must have the .jsx
file extension.
The jsx plugin is required for JSX assets to be recognized.
module.exports = exports.default;
is used when a module only has an export default
statement. This often eliminates the need for require('es-module').default
.