mirror of
https://github.com/svg/svgo.git
synced 2025-07-29 20:21:14 +03:00
add: centralize exports to svgo (#2071)
This commit is contained in:
@ -6,6 +6,9 @@ import {
|
||||
VERSION,
|
||||
optimize as optimizeAgnostic,
|
||||
builtinPlugins,
|
||||
querySelector,
|
||||
querySelectorAll,
|
||||
_collections,
|
||||
} from './svgo.js';
|
||||
|
||||
const importConfig = async (configFile) => {
|
||||
@ -29,7 +32,13 @@ const isFile = async (file) => {
|
||||
}
|
||||
};
|
||||
|
||||
export { VERSION, builtinPlugins };
|
||||
export {
|
||||
VERSION,
|
||||
builtinPlugins,
|
||||
querySelector,
|
||||
querySelectorAll,
|
||||
_collections,
|
||||
};
|
||||
|
||||
export const loadConfig = async (configFile, cwd = process.cwd()) => {
|
||||
if (configFile != null) {
|
||||
@ -84,4 +93,7 @@ export default {
|
||||
builtinPlugins,
|
||||
loadConfig,
|
||||
optimize,
|
||||
querySelector,
|
||||
querySelectorAll,
|
||||
_collections,
|
||||
};
|
||||
|
Reference in New Issue
Block a user