-
-
Notifications
You must be signed in to change notification settings - Fork 467
Open
Description
Feature Request
In some cases, simple string interpolation is not good enough when importing an absolute file path, as mentioned in the original issues mentioned below.
We should provide a util from wxt/module for converting file paths to import paths. It should support windows paths and unix paths, as well as escape ' and other characters in paths.
Proposed APIs:
import { formatImportPath } from 'wxt/modules'Is your feature request related to a bug?
What are the alternatives?
Use a package or existing API?
Additional context
Add any other context or screenshots about the feature request here.
Reactions are currently unavailable