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
createBundleRenderer('/path/to/bundle.json') failed. but createBundleRenderer(require('/path/to/bundle.json')) succeed
createBundleRenderer('/path/to/bundle.json')
createBundleRenderer(require('/path/to/bundle.json'))
And I found the pattern /\.json$/ is tested based on file content but not based on file name:
/\.json$/
bundle = fs.readFileSync(bundle, 'utf-8') if (/\.json$/.test(bundle)) {
see https://github.com/vuejs/vue/blob/dev/src/server/create-bundle-renderer.js#L47-L48
The text was updated successfully, but these errors were encountered:
367f781
Thanks for locating the problem!
Sorry, something went wrong.
No branches or pull requests
createBundleRenderer('/path/to/bundle.json')
failed.but
createBundleRenderer(require('/path/to/bundle.json'))
succeedAnd I found the pattern
/\.json$/
is tested based on file content but not based on file name:see
https://github.com/vuejs/vue/blob/dev/src/server/create-bundle-renderer.js#L47-L48
The text was updated successfully, but these errors were encountered: