-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
350b2f3
commit d449b64
Showing
3 changed files
with
69 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
packages/vite-plugin-require-context/test/expects/surroundedByFunction.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// generated by @originjs/vite-plugin-require-context | ||
|
||
// start of generated code of __require_context_for_vite_function_0, generated by @originjs/vite-plugin-require-context | ||
|
||
var __require_context_for_vite_map_0 = {}; | ||
function __require_context_for_vite_function_0(req) { | ||
var id = __require_context_for_vite_function_0_resolve(req); | ||
return __require_context_for_vite_map_0[req]; | ||
} | ||
function __require_context_for_vite_function_0_resolve(req) { | ||
if (req in __require_context_for_vite_map_0) { | ||
return __require_context_for_vite_map_0[req]; | ||
} | ||
var e = new Error("Cannot find module '" + req + "'"); | ||
e.code = 'MODULE_NOT_FOUND'; | ||
throw e; | ||
} | ||
__require_context_for_vite_function_0.keys = function __require_context_for_vite_function_0_keys() { | ||
return Object.keys(__require_context_for_vite_map_0); | ||
} | ||
__require_context_for_vite_function_0.resolve = __require_context_for_vite_function_0_resolve | ||
__require_context_for_vite_function_0.id = "__require_context_for_vite_function_0" | ||
// end of generated code of __require_context_for_vite_function_0 | ||
const requireComponents = getFilesByContext(__require_context_for_vite_function_0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters