Dan503 / gulp-auto-imports

Auto generate import-only files for any file type. SCSS, JS, TS, Pug, whatever you want.
MIT License
1 stars 0 forks source link

Overiding a format object from a preset should not override the whole object #18

Open Dan503 opened 3 years ago

Dan503 commented 3 years ago

For example, the es6 preset format object looks like this:

{
      imports: `import $name from '$path'`,
      functions: '  $name()',
}

If I want to change functions: ' $name()', to something else, I should be able to override that without also overriding the imports:import $name from '$path', value.