Skip to content

Commit

Permalink
fix(cli): babel configuration-related path optimization
Browse files Browse the repository at this point in the history
affects: @varlet/cli
  • Loading branch information
haoziqaq committed Sep 10, 2021
1 parent c5860c8 commit b79db48
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/varlet-cli/src/config/babel.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ module.exports = (api?: ConfigAPI, options: PresetOption = {}) => {
return {
presets: [
[
'@babel/preset-env',
require.resolve('@babel/preset-env'),
{
modules: isTest ? 'commonjs' : false,
loose: options.loose,
},
],
'@babel/preset-typescript',
require.resolve('@babel/preset-typescript'),
require('./babel.sfc.transform'),
],
plugins: [
[
'import',
require.resolve('babel-plugin-import'),
{
libraryName: '@varlet/ui',
libraryDirectory: 'es',
Expand All @@ -35,7 +35,7 @@ module.exports = (api?: ConfigAPI, options: PresetOption = {}) => {
'@varlet/ui',
],
[
'@vue/babel-plugin-jsx',
require.resolve('@vue/babel-plugin-jsx'),
{
enableObjectSlots: options.enableObjectSlots,
},
Expand Down

0 comments on commit b79db48

Please sign in to comment.