4 Star 7 Fork 0

Jackstraw / ReactWine

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.babelrc.js 2.25 KB
一键复制 编辑 原始数据 按行查看 历史
Jackstraw 提交于 2019-11-22 09:40 . 加入阿里依赖
const path = require('path');
const webpack = require('webpack');
module.exports = {
"presets": [
// "@babel/react",
[
"@babel/preset-env",
{
"modules": false,
"targets": {
"browsers": [
"> 1%",
"last 2 versions",
"not ie <= 8"
]
}
},
]
],
plugins: [
// new webpack.DefinePlugin({
// 'process.env.NODE_ENV': JSON.stringify('production'),
// }),
// [
// 'module-resolver',
// {
// alias: {
// components: path.join(__dirname, './src/components'),
// },
// },
// ],
// [
// 'import',
// {
// libraryName: 'antd',
// style: true, // or 'css'
// },
// ],
// ["import", { libraryName: "antd", "libraryDirectory": "es", style: 'css' }],
["@babel/plugin-proposal-decorators",{ "legacy": true }],
"transform-react-jsx",
"@babel/plugin-transform-runtime",
"@babel/plugin-syntax-dynamic-import",
'@babel/plugin-proposal-class-properties',
],
};
// {
// "presets": [
// [
// "@babel/preset-env",
// {
// "modules": false,
// "targets": {
// "browsers": [
// "> 1%",
// "last 2 versions",
// "not ie <= 8"
// ]
// }
// },
// ]
// ],
// "plugins": [
// ["import", { libraryName: "antd", style: "css" }],
// ["@babel/plugin-proposal-decorators",{ "legacy": true }],
// "transform-react-jsx",
// "@babel/plugin-transform-runtime",
// "@babel/plugin-syntax-dynamic-import",
// '@babel/plugin-proposal-class-properties',
// ]
// }
// {
// "presets": [
// // "es2015",
// "react",
// "babel-preset-stage-3",
// [
// "env",
// {
// "loose": true,
// "modules": false
// }
// ],
// ],
// "plugins": [
// "transform-decorators-legacy",
// ]
// }
TypeScript
1
https://gitee.com/W006/ReactWine.git
git@gitee.com:W006/ReactWine.git
W006
ReactWine
ReactWine
master

搜索帮助