@finos/babel-preset-legend-studio

2.0.61 • Public • Published

@finos/babel-preset-legend-studio

This preset includes the following presets and plugins:

And with the development option:

React support adds:

Options

const { development, useTypescript, useReact } = opts;

development

boolean, defaults to false

This toggles behavior specific to development:

  • React support will turn on fast-refresh for files with JSX.

useTypescript

boolean, defaults to false

This toggles support for Typescript. Note that babel does not do type-checking (i.e. it only strips away type annotations and transpile files to Javascript) nor generating type definition files.

useReact

boolean, defaults to false

This toggles support for React. Note that we use automatic for runtime option, which auto-import functions from React@17 that helps with transforming JSX.

/@finos/babel-preset-legend-studio/

    Package Sidebar

    Install

    npm i @finos/babel-preset-legend-studio

    Weekly Downloads

    56

    Version

    2.0.61

    License

    Apache-2.0

    Unpacked Size

    17.7 kB

    Total Files

    4

    Last publish

    Collaborators

    • finos-admin
    • maoo
    • texodus
    • neil.slinger