UNPKG

@ianvs/prettier-plugin-sort-imports

Version:

A prettier plugins to sort imports in provided RegEx order

11 lines (10 loc) 389 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.defaultPreprocessor = void 0; const preprocessor_1 = require("./preprocessor"); function defaultPreprocessor(code, options) { if (options.filepath?.endsWith('.vue')) return code; return (0, preprocessor_1.preprocessor)(code, options); } exports.defaultPreprocessor = defaultPreprocessor;