Skip to content

Require and write a new module #403

Description

@evenstensberg

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

  1. Download the project
  2. Run mink -r and click enter a bunch of times.
  3. Go to lib/refactor-configuration
  4. Issue is from lib/write-loaders

Thanks!

skjermbilde 2016-12-12 kl 08 40 47
skjermbilde 2016-12-12 kl 16 39 39
skjermbilde 2016-12-12 kl 08 40 25

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions