Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c5bdb2b

Browse filesBrowse files
committed
refactor: use loadModule directly
1 parent 9bd3ecc commit c5bdb2b
Copy full SHA for c5bdb2b

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎packages/@vue/cli-service/lib/Service.js

Copy file name to clipboardExpand all lines: packages/@vue/cli-service/lib/Service.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ module.exports = class Service {
178178
) {
179179
let apply = () => {}
180180
try {
181-
apply = require(resolveModule(id, this.pkgContext))
181+
apply = loadModule(id, this.pkgContext)
182182
} catch (e) {
183183
warn(`Optional dependency ${id} is not installed.`)
184184
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.