代码拉取完成,页面将自动刷新
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",
// ]
// }
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。