JSPM

  • Created
  • Published
  • Downloads 30
  • Score
    100M100P100Q36652F
  • License MIT

transformer for @react-native-esbuild

Package Exports

  • @react-native-esbuild/transformer
  • @react-native-esbuild/transformer/dist/index.js
  • @react-native-esbuild/transformer/lib/index.ts

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@react-native-esbuild/transformer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@react-native-esbuild/transformer

Usage

import {
  stripFlowWithSucrase,
  transformWithBabel,
  transformWithSwc,
  minifyWithSwc,
} from '@react-native-esbuild/transformer';

await stripFlowWithSucrase(code, context);
await transformWithBabel(code, context, options);
await transformWithSwc(code, context, options);
await minifyWithSwc(code, context, options);