Merge branch 'feat-vue3' of https://github.com/vueComponent/ant-design-vue into feat-vue3
commit
e054bf6a5f
|
@ -2,6 +2,7 @@
|
|||
|
||||
module.exports = function(modules) {
|
||||
const plugins = [
|
||||
require.resolve('@ant-design-vue/babel-plugin-jsx'),
|
||||
require.resolve('babel-plugin-inline-import-data-uri'),
|
||||
require.resolve('@babel/plugin-transform-member-expression-literals'),
|
||||
require.resolve('@babel/plugin-transform-property-literals'),
|
||||
|
|
|
@ -50,7 +50,6 @@ function getWebpackConfig(modules) {
|
|||
modules: ['node_modules', path.join(__dirname, '../node_modules')],
|
||||
extensions: ['.js', '.jsx', '.vue', '.md', '.json'],
|
||||
alias: {
|
||||
vue$: 'vue/dist/vue.esm.js',
|
||||
'@': process.cwd(),
|
||||
},
|
||||
},
|
||||
|
@ -83,8 +82,11 @@ function getWebpackConfig(modules) {
|
|||
{
|
||||
loader: 'babel-loader',
|
||||
options: {
|
||||
presets: ['env'],
|
||||
plugins: ['transform-vue-jsx', 'transform-object-rest-spread'],
|
||||
presets: [require.resolve('@babel/preset-env')],
|
||||
plugins: [
|
||||
require.resolve('@ant-design-vue/babel-plugin-jsx'),
|
||||
require.resolve('@babel/plugin-proposal-object-rest-spread'),
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue