vite-plugin / vite-plugin-dynamic-import

Enhance Vite builtin dynamic import
https://www.npmjs.com/package/vite-plugin-dynamic-import
MIT License
193 stars 11 forks source link

dynamic require of "../../components/ColorPicker" is not supported #16

Closed ashergaga closed 2 years ago

ashergaga commented 2 years ago

c19d61c9466fe5ecf4bd334ebadb72c 1030a5d3244a1b9ef84c99df00af548

Can this plugin solve this error when using 'amis'?

GKhelio commented 2 years ago

@ashergaga You are using aliases?? You can show us your vite.config

caoxiemeihao commented 2 years ago

This looks like the syntax from Webpack. The feature is not supported on vite-plugin-dynamic-import.
@youngleish This feature should be implemented in the next version of vite-require.