svgo icon indicating copy to clipboard operation
svgo copied to clipboard

fix: fixed Config definition for node

Open nuintun opened this issue 1 year ago • 2 comments

Re export Config definition for node module.

image

nuintun avatar May 09 '24 02:05 nuintun

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 :)

XhmikosR avatar May 09 '24 04:05 XhmikosR

@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.

nuintun avatar May 09 '24 06:05 nuintun

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.

SethFalco avatar Jun 09 '24 15:06 SethFalco