@serverless-guru/prettier-plugin-import-order
Version:
A prettier plugin to sort TS/JS import declarations by provided Regular Expression order
12 lines (11 loc) • 445 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.defaultPreprocessor = void 0;
var preprocessor_1 = require("./preprocessor");
function defaultPreprocessor(code, options) {
var _a;
if ((_a = options.filepath) === null || _a === void 0 ? void 0 : _a.endsWith('.vue'))
return code;
return (0, preprocessor_1.preprocessor)(code, options);
}
exports.defaultPreprocessor = defaultPreprocessor;