-
|
we can ignore suffix by configuring as follows in webpack: but this is forbidden in vite,you can see : #178 so when the dependencies in node_modules/ use webpack,and the code maybe as follows: instead of how to solve this problem without changing the third-party dependency |
Beta Was this translation helpful? Give feedback.
Answered by
patak-dev
Mar 26, 2021
Replies: 1 comment 4 replies
-
|
You can still resolve extensions in Vite including in your resolve: {
extensions: [ '.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue' ]
}But the Vue ecosystem is moving away from auto-resolving |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
patak-dev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can still resolve extensions in Vite including in your
vite.config.js:But the Vue ecosystem is moving away from auto-resolving
.vueextensions, so you are encouraged to migrate at this point so your code will better work with other tools in the future.