0.1.14 • Published 3 years ago
@antd-vue/pro-layout v0.1.14
vue-demo
Project setup
yarn install
Compiles and hot-reloads for development
yarn start
Compiles and minifies for production
yarn build
Run your unit tests
yarn test:unit
Lints and fixes files
yarn lint
// console.log(require.resolve('@babel/preset-env'));
// console.log(require.resolve('@vue/babel-plugin-jsx'));
// // @vue/cli-plugin-babel/preset
// console.log(process.env);
module.exports = {
presets: [
[
'@babel/preset-env',
{
loose: false,
debug: false,
useBuiltIns: 'usage',
corejs: require('core-js/package.json').version,
modules: false,
bugfixes: true,
},
],
// ['@babel/preset-typescript', {}],
],
plugins: [
['@babel/plugin-transform-typescript', { isTSX: true }],
['@vue/babel-plugin-jsx', {}],
// [
// 'import',
// {
// libraryName: 'ant-design-vue',
// libraryDirectory: 'es',
// style: true,
// },
// 'ant-design-vue',
// ],
/* @antd-vue/pro-layout 按需引入 */
// [
// 'import',
// {
// libraryName: '@antd-vue/pro-layout',
// libraryDirectory: 'es',
// style: true,
// camel2DashComponentName: false,
// },
// '@antd-vue/pro-layout',
// ],
[
'@babel/plugin-transform-runtime',
{
helpers: false,
},
],
],
};