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?
Follow up to #2143 and #1697.
What are the alternatives?
Use a package or existing API?
Additional context
Add any other context or screenshots about the feature request here.
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/modulefor 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:
Is your feature request related to a bug?
Follow up to #2143 and #1697.
What are the alternatives?
Use a package or existing API?
Additional context
Add any other context or screenshots about the feature request here.