Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated compatibility code error #3400

Closed
hdcljt opened this issue May 13, 2021 · 0 comments · Fixed by #3406
Closed

Generated compatibility code error #3400

hdcljt opened this issue May 13, 2021 · 0 comments · Fixed by #3406
Labels
p3-minor-bug An edge case that only affects very specific usage (priority) plugin: legacy

Comments

@hdcljt
Copy link

hdcljt commented May 13, 2021

export function flushPostFlushCbs(seen?: CountMap) {
  if (pendingPostFlushCbs.length) {
    const deduped = [...new Set(pendingPostFlushCbs)]
    pendingPostFlushCbs.length = 0
  }
}

The problem is in this place

const deduped = [...new Set(pendingPostFlushCbs)]
var deduped=[].concat(new Set(pendingPostFlushCbs))

The configuration file look like this:

{
    plugins: [vue(), legacy({ targets: ['defaults', 'since 2016', 'not IE 11'] })],
    build: {
        target: 'es2015',
        minify: false
    }
}
'since 2016'
@nihalgonsalves nihalgonsalves added bug p3-minor-bug An edge case that only affects very specific usage (priority) plugin: legacy and removed pending triage labels May 13, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
p3-minor-bug An edge case that only affects very specific usage (priority) plugin: legacy
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants