Commit 74febfc2 authored by AskingQuestions's avatar AskingQuestions Committed by Eduardo San Martin Morote

chore: comment typos (#1621)

parent cf00a45c
...@@ -185,7 +185,7 @@ var component = normalizer( ...@@ -185,7 +185,7 @@ var component = normalizer(
// from the devtools. // from the devtools.
code += `\ncomponent.options.__file = ${JSON.stringify(rawShortFilePath.replace(/\\/g, '/'))}` code += `\ncomponent.options.__file = ${JSON.stringify(rawShortFilePath.replace(/\\/g, '/'))}`
} else if (options.exposeFilename) { } else if (options.exposeFilename) {
// Libraies can opt-in to expose their components' filenames in production builds. // Libraries can opt-in to expose their components' filenames in production builds.
// For security reasons, only expose the file's basename in production. // For security reasons, only expose the file's basename in production.
code += `\ncomponent.options.__file = ${JSON.stringify(filename)}` code += `\ncomponent.options.__file = ${JSON.stringify(filename)}`
} }
......
...@@ -71,7 +71,7 @@ export default function normalizeComponent ( ...@@ -71,7 +71,7 @@ export default function normalizeComponent (
// for template-only hot-reload because in that case the render fn doesn't // for template-only hot-reload because in that case the render fn doesn't
// go through the normalizer // go through the normalizer
options._injectStyles = hook options._injectStyles = hook
// register for functioal component in vue file // register for functional component in vue file
var originalRender = options.render var originalRender = options.render
options.render = function renderWithStyleInjection (h, context) { options.render = function renderWithStyleInjection (h, context) {
hook.call(context) hook.call(context)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment