Skip to content

Commit

Permalink
feat: respect explicitly set build.corejs version in nuxt.config
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Nov 25, 2020
1 parent bada869 commit b1603cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const compositionApiModule: Module<any> = function () {
? String(this.nuxt.options.build.corejs)
: undefined
try {
if (!corejsPolyfill) {
if (!['2', '3'].includes(corejsPolyfill || '')) {
// eslint-disable-next-line
const corejsPkg = require('core-js/package.json')
corejsPolyfill = corejsPkg.version.slice(0, 1)
Expand Down

0 comments on commit b1603cb

Please sign in to comment.