Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
fix: cannot work legacy mode, when install plugin (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Mar 29, 2021
1 parent 89046f3 commit af66370
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = (api, options) => {
enableInSFC,
localeDir,
runtimeOnly,
enableLegacy,
compositionOnly,
fullInstall
} = options.pluginOptions.i18n
Expand Down Expand Up @@ -48,7 +49,11 @@ module.exports = (api, options) => {
debug('set vue-i18n runtime only')
}

const legacyApiFlag = compositionOnly ? 'false' : 'true'
// prettier-ignore
const legacyApiFlag = enableLegacy
? 'true'
: compositionOnly
? 'false' : 'true'
const installFlag = fullInstall ? 'true' : 'false'
webpackConfig.plugin('vue-i18n-feature-flags').use(webpack.DefinePlugin, [
{
Expand Down

0 comments on commit af66370

Please sign in to comment.