I've hit a cornerstone in my project whereas I need to add an item to an array that is a module. After adding it, I want to leave the module untouched. The expected behaviour is that it only adds a line of code to my project, but it doesn't. Instead it inlines the object using serialize-javascript. If I were to use template literals or .toString() it returns an file with [Object object].
To reproduce:
https://github.com/ev1stensberg/mink
- Download the project
- Run mink -r and click enter a bunch of times.
- Go to
lib/refactor-configuration
- Issue is from
lib/write-loaders
Thanks!



I've hit a cornerstone in my project whereas I need to add an item to an array that is a module. After adding it, I want to leave the module untouched. The expected behaviour is that it only adds a line of code to my project, but it doesn't. Instead it inlines the object using
serialize-javascript. If I were to use template literals or.toString()it returns an file with[Object object].To reproduce:
https://github.com/ev1stensberg/mink
lib/refactor-configurationlib/write-loadersThanks!