JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 21
  • Score
    100M100P100Q53355F
  • License ISC

this is babel

Package Exports

  • ko-babel-app

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 (ko-babel-app) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.

usege

1. const babelConf=require('ko-babel-app');
2.{
        test: /\.(js|jsx|mjs)$/,
        exclude: /node_modules/,
        loader: BABEL_LOADER,
        options: deepAssign({}, babelConf, {
        cacheDirectory: true
        })
   }

Tips

1.可配合 ko-script 使用;

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