svg / svgo

⚙️ Node.js tool for optimizing SVG files
https://svgo.dev/
MIT License
21.03k stars 1.39k forks source link

fix: fixed Config definition for node #1997

Closed nuintun closed 5 months ago

nuintun commented 6 months ago

Re export Config definition for node module.

image

XhmikosR commented 6 months ago

Just thinking out loud here, can't you just export from directly instead of importing and then exporting?

EDIT: NVM, the import is used elsewhere, sorry for the noise :)

nuintun commented 6 months ago

@XhmikosR

import { Config, optimize } from './svgo';

export { Config, optimize };

are equal to

export { Config, optimize } from './svgo';

Directly export is just a syntax sugar for reexport variables that are not used in the current code.

SethFalco commented 5 months ago

Hey, thanks for submitting the PR! I've rebased for you and amended the commit to export everything instead, which matches the exports in previous versions.