Nervously Practice Multithreading
    Have ideas to improve npm?Join in the discussion! »

    @kodesign/ko-babel-app

    8.0.1 • Public • Published

    ko-babel-app

    npm version Downloads node version

    babel预设集合,支持react,typescript,antd动态引入

    Installation

    $ npm install ko-babel-app --dev.
     
    $ yarn add  ko-babel-app --dev.

    Usage

    Syntax

    const koBabelApp = require('ko-babel-app');
    const babelConf = koBabelApp([, plugins], [, targets]);
    • plugins

      babel plugins will be added in config

    • targets

      the environments you support/target for your project. Default targets is defaults. Checkout the available options

    Then use babelConf in babel loader as below

    {
      test: /\.(js|jsx|mjs)$/,
      exclude: /node_modules/,
      loader: BABEL_LOADER,
      options: deepAssign({}, babelConf, {
      cacheDirectory: true
      })
    }

    Tips

    1.可配合 ko-script 使用;

    2.可单独配置 webpack 中使用,省去安装各种 babel;

    Install

    npm i @kodesign/ko-babel-app

    DownloadsWeekly Downloads

    3

    Version

    8.0.1

    License

    ISC

    Unpacked Size

    8.01 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar