Repository navigation
Consider restricting the plugin to particular files via options.include #1586
Replies: 2 comments
|
Same problem here. It seems to be triggered by an sass import from node_modules in my case: |
|
For the CSS/Sass case, restrict inject({
include: ["**/*.js", "**/*.mjs", "**/*.cjs"],
// Keep your existing mappings here, for example:
$: "jquery",
})The warning comes from Verified with Rollup 4.53.3 and inject 5.0.5 using a CSS fixture containing If your injection targets include TypeScript or JSX, adjust the include patterns for those files and make sure their syntax has been transformed into JavaScript before |
Uh oh!
There was an error while loading. Please reload this page.
use rollup-plugin-inject ,tip: rollup-plugin-inject: failed to parse xxxxx Consider restricting the plugin to particular files via options.include
Although it does not affect my project permission, I am still very unhappy to see it
All reactions