-
-
Notifications
You must be signed in to change notification settings - Fork 607
Closed
Description
- Rollup Plugin Name: pluginutils (specifically
createFilter
) - Rollup Plugin Version: 4.1.0
- Rollup Version: 2.35.1
- Operating System (or Browser): MacOS
- Node Version: 15.x.x
- Link to reproduction (
⚠️ read below): https://repl.it/@AlexVipond/createFilter-virtual-rejection
Expected Behavior
createFilter
shouldn't care if \0
is in the file ID, and it shouldn't care if the file is virtual or not (virtual files are conventionally prefixed with \0virtual:
)
Actual Behavior
createFilter
rejects files with \0
in the ID (e.g. virtual files) outright:
if (/\0/.test(id)) return false; |
Additional Information
The particular use case I have right now is:
- Taking an SVG icon as an input, construct a virtual file whose code is a single file Vue component wrapping the SVG code.
- Use rollup-plugin-vue to compile the virtual component file down to a plain JS render function for the browser.
Since rollup-plugin-vue uses createFilter
under the hood, virtual files are rejected outright, and the component is not properly processed at build time.
Metadata
Metadata
Assignees
Labels
No labels