UNPKG

reboost

Version:

A super fast dev server for rapid web development

15 lines (14 loc) 715 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonJSMode1Plugin = exports.runTransformation = void 0; const transform_commonjs_1 = require("./transform-commonjs"); Object.defineProperty(exports, "runTransformation", { enumerable: true, get: function () { return transform_commonjs_1.transformCommonJS; } }); const utils_1 = require("../../utils"); const CommonJSMode1Plugin = () => ({ name: 'core-commonjs-mode-1-plugin', getCacheKey: () => 1, transformAST(programPath, _, filePath) { (0, transform_commonjs_1.transformCommonJS)(programPath, filePath, (0, utils_1.uniqueID)(6)); } }); exports.CommonJSMode1Plugin = CommonJSMode1Plugin;