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

Source map is not generated for javascript/typescript when using unplugin-vue-i18n/vite #207

Closed
4 tasks done
norux opened this issue Nov 23, 2022 · 0 comments · Fixed by #208
Closed
4 tasks done
Labels
Package: unplugin-vue-i18n Status: Review Needed Request for review comments Type: Bug Bug or Bug fixes

Comments

@norux
Copy link

norux commented Nov 23, 2022

Reporting a bug?

When build code with unplugin-vue-18n/vite, source map for js/ts is not generated.

without plugin with plugin
link link

I found some code not implemented yet. I think it have to be removed.

} else {
// TODO: support virtual import identifier
// for virtual import identifier (@intlify/unplugin-vue-i18n/messages)
return {
code,
map: { mappings: '', version: '3', sources: [] }
}
}

Expected behavior

Generating source map for javascript/typescript

Reproduction

https://github.com/norux/intlify-bundle-tools-reproduce

Issue Package

unplugin-vue-i18n

System Info

System:
    OS: macOS 12.6
    CPU: (10) arm64 Apple M1 Pro
    Memory: 145.41 MB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.15.0 - ~/.nvm/versions/node/v16.15.0/bin/node
    Yarn: 1.22.18 - ~/.nvm/versions/node/v16.15.0/bin/yarn
    npm: 8.5.5 - ~/.nvm/versions/node/v16.15.0/bin/npm
  Browsers:
    Chrome: 107.0.5304.110
    Safari: 16.0

Screenshot

No response

Additional context

No response

Validations

  • Read the Contributing Guidelines.
  • Read the README
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A open a GitHub Discussion.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: unplugin-vue-i18n Status: Review Needed Request for review comments Type: Bug Bug or Bug fixes
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants