Skip to content

Commit 138e463

Browse files
committed
fix(core): Resolve issue replacing prefix in module resolution
1 parent 6a362b8 commit 138e463

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/core/src/lib/unplugin/module-resolution.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@ export interface CreateUnpluginModuleResolutionFunctionsOptions {
3232
* An indicator of whether to prefix virtual module IDs with a specific string. This is useful for ensuring that virtual modules are only processed by the plugin and not by other plugins or the bundler itself.
3333
*
3434
* @remarks
35-
* - If set to `true`, virtual module IDs will be prefixed with the string `\0powerlines:`.
35+
* - If set to `true`, virtual module IDs will be prefixed with the string `powerlines-virtual:`.
3636
* - If set to `false`, no prefix will be added to virtual module IDs.
3737
*
3838
* @defaultValue true
3939
*/
4040
prefix?: boolean;
4141
}
4242

43-
const VIRTUAL_MODULE_PREFIX = "\\0powerlines-virtual:";
44-
const VIRTUAL_MODULE_PREFIX_REGEX = /^\\0powerlines-virtual:/;
43+
const VIRTUAL_MODULE_PREFIX = "powerlines-virtual:";
44+
const VIRTUAL_MODULE_PREFIX_REGEX = /^powerlines-virtual:/;
4545

4646
/**
4747
* Creates the module resolution hook functions for a Powerlines unplugin plugin instance.

0 commit comments

Comments
 (0)