We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
16.0.0-alpha.2
https://github.com/sisou/vue-next-webpack-preview
yarn upgrade
App.vue
https://vuejs.org/images/logo.png
yarn dev
yarn build
The project compiles without errors, because absolute and HTTP URLs are ignored (or rather preserved-as-is) by vue-loader.
Vue-loader throws an error during compilation that it could not find dependencies.
I hope I have interpreted the Transform Rules correctly. I think I have, because it is working fine with Vue 2 and a lower version of vue-loader.
The text was updated successfully, but these errors were encountered:
I did a bit more digging and I think this issue actually concerns the compiler-sfc package in vue-next, somewhere around this code: https://github.com/vuejs/vue-next/blob/master/packages/compiler-sfc/src/templateTransformAssetUrl.ts#L49
compiler-sfc
The difference to Vue2 seems to be that there an import statement (a require) was only generated when the asset path was relative or prefixed with ~ or @ (https://github.com/vuejs/component-compiler-utils/blob/master/lib/templateCompilerModules/utils.ts#L17-L34), whereas now there is no such differentiation, as all URLs are parsed.
require
~
@
Do you want me to open an issue in vue-next instead?
Sorry, something went wrong.
closed via vue-next#628
No branches or pull requests
Version
16.0.0-alpha.2
Reproduction link
https://github.com/sisou/vue-next-webpack-preview
Steps to reproduce
yarn upgrade
to have the latest versions (e.g. vue-loader@16.0.0-alpha.2)App.vue
with a HTTP URL:https://vuejs.org/images/logo.png
yarn dev
oryarn build
and receive an error.What is expected?
The project compiles without errors, because absolute and HTTP URLs are ignored (or rather preserved-as-is) by vue-loader.
What is actually happening?
Vue-loader throws an error during compilation that it could not find dependencies.
I hope I have interpreted the Transform Rules correctly. I think I have, because it is working fine with Vue 2 and a lower version of vue-loader.
The text was updated successfully, but these errors were encountered: