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
2.0.0-beta.5
vue: 3.0.0-rc.10 vue-loader: 16.0.0-beta.7
3.0.0-rc.10
16.0.0-beta.7
https://github.com/kagawagao/antdv-vue-loader-16
见示例仓库
能正常运行
编译失败
[email protected] 之后用了 compiler-sfc 的 compileScript 来编译 script 代码,导致需要增加额外的插件来支持 jsx,因此编译失败
[email protected]
compiler-sfc
compileScript
script
jsx
https://github.com/vuejs/vue-loader/blob/c30c4c7440d2466aa3c1cf043f4e520cc9def6b9/src/index.ts#L133-L139
// vue-loader try { script = (descriptor as any).scriptCompiled = compileScript(descriptor, { babelParserPlugins: options.babelParserPlugins }) } catch (e) { loaderContext.emitError(e) }
https://github.com/vuejs/vue-next/blob/110e96d1524fa9ff6d2b1fb0f26af0c4d0cb6ff7/packages/compiler-sfc/src/compileScript.ts#L75-L84
// compiler-sfc const scriptAst = parse(script.content, { plugins, sourceType: 'module' }).program.body return { ...script, content: hasCssVars ? injectCssVarsCalls(sfc, plugins) : script.content, bindings: analyzeScriptBindings(scriptAst), scriptAst }
The text was updated successfully, but these errors were encountered:
vuejs/vue-cli#5868
Sorry, something went wrong.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
No branches or pull requests
Version
2.0.0-beta.5
Environment
vue:
3.0.0-rc.10
vue-loader:
16.0.0-beta.7
Reproduction link
https://github.com/kagawagao/antdv-vue-loader-16
Steps to reproduce
见示例仓库
What is expected?
能正常运行
What is actually happening?
编译失败
[email protected]
之后用了compiler-sfc
的compileScript
来编译script
代码,导致需要增加额外的插件来支持jsx
,因此编译失败https://github.com/vuejs/vue-loader/blob/c30c4c7440d2466aa3c1cf043f4e520cc9def6b9/src/index.ts#L133-L139
https://github.com/vuejs/vue-next/blob/110e96d1524fa9ff6d2b1fb0f26af0c4d0cb6ff7/packages/compiler-sfc/src/compileScript.ts#L75-L84
The text was updated successfully, but these errors were encountered: