Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vue-loader
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pi-plusplus
fork-from-github
vue-loader
Commits
74febfc2
Commit
74febfc2
authored
Dec 23, 2019
by
AskingQuestions
Committed by
Eduardo San Martin Morote
Dec 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: comment typos (#1621)
parent
cf00a45c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
index.js
lib/index.js
+1
-1
componentNormalizer.js
lib/runtime/componentNormalizer.js
+1
-1
No files found.
lib/index.js
View file @
74febfc2
...
@@ -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.
// Libra
r
ies 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
)}
`
}
}
...
...
lib/runtime/componentNormalizer.js
View file @
74febfc2
...
@@ -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 functio
n
al 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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment