You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
My setup implements node-sass-json-importer. The project is a NextJS project and the implementation is setup through the next.config.mjs file. I can't implement the importer via tsconfig.json as it only takes strings. The plugin fails to generate types to .scss that tries to import a JSON file, which works elsewhere due to the implementation of the importer.
Describe the solution you'd like
The string value added as the example below, shall successfully import and implement the importer at initialisation.
Easy
If a string is passed, we resolve it and then call the function - passing that into importers. The limitation of this would be that you wouldn't be able to provide options to the importer, and it would only work if it was the default export.
Hard
We support JS configuration files for this plugin, which it sounds like we may need to do for flexibility.
Would the easy option solve this for you today? Or do you need to provide options?
Is your feature request related to a problem? Please describe.
My setup implements node-sass-json-importer. The project is a NextJS project and the implementation is setup through the
next.config.mjs
file. I can't implement the importer viatsconfig.json
as it only takes strings. The plugin fails to generate types to.scss
that tries to import a JSON file, which works elsewhere due to the implementation of the importer.Describe the solution you'd like
The string value added as the example below, shall successfully import and implement the importer at initialisation.
Describe alternatives you've considered
next.config.msj
.The text was updated successfully, but these errors were encountered: