Add semantic token highlighting for 'that' variable and comment file references in VS Code extension Add Phone_Text_Input and Currency_Input components with formatting utilities Implement client widgets, form standardization, and soft delete functionality Add modal scroll lock and update documentation Implement comprehensive modal system with form integration and validation Fix modal component instantiation using jQuery plugin API Implement modal system with responsive sizing, queuing, and validation support Implement form submission with validation, error handling, and loading states Implement country/state selectors with dynamic data loading and Bootstrap styling Revert Rsx::Route() highlighting in Blade/PHP files Target specific PHP scopes for Rsx::Route() highlighting in Blade Expand injection selector for Rsx::Route() highlighting Add custom syntax highlighting for Rsx::Route() and Rsx.Route() calls Update jqhtml packages to v2.2.165 Add bundle path validation for common mistakes (development mode only) Create Ajax_Select_Input widget and Rsx_Reference_Data controller Create Country_Select_Input widget with default country support Initialize Tom Select on Select_Input widgets Add Tom Select bundle for enhanced select dropdowns Implement ISO 3166 geographic data system for country/region selection Implement widget-based form system with disabled state support 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
58 lines
2.1 KiB
JavaScript
58 lines
2.1 KiB
JavaScript
;
|
|
const pluginCorejs2 = require("babel-plugin-polyfill-corejs2").default;
|
|
const pluginCorejs3 = require("babel-plugin-polyfill-corejs3").default;
|
|
const pluginRegenerator = require("babel-plugin-polyfill-regenerator").default;
|
|
const pluginsCompat = "#__secret_key__@babel/runtime__compatibility";
|
|
function createCorejs2Plugin(options) {
|
|
return (api, _, filename) => pluginCorejs2(api, options, filename);
|
|
}
|
|
function createCorejs3Plugin(options) {
|
|
return (api, _, filename) => pluginCorejs3(api, options, filename);
|
|
}
|
|
function createRegeneratorPlugin(options, useRuntimeRegenerator, corejsPlugin) {
|
|
if (!useRuntimeRegenerator) return corejsPlugin != null ? corejsPlugin : undefined;
|
|
return (api, _, filename) => {
|
|
return Object.assign({}, pluginRegenerator(api, options, filename), {
|
|
inherits: corejsPlugin != null ? corejsPlugin : undefined
|
|
});
|
|
};
|
|
}
|
|
module.exports = function createBasePolyfillsPlugin({
|
|
corejs,
|
|
regenerator = true,
|
|
moduleName
|
|
}, runtimeVersion, absoluteImports) {
|
|
let proposals = false;
|
|
let rawVersion;
|
|
if (typeof corejs === "object" && corejs !== null) {
|
|
rawVersion = corejs.version;
|
|
proposals = Boolean(corejs.proposals);
|
|
} else {
|
|
rawVersion = corejs;
|
|
}
|
|
const corejsVersion = rawVersion ? Number(rawVersion) : false;
|
|
if (![false, 2, 3].includes(corejsVersion)) {
|
|
throw new Error(`The \`core-js\` version must be false, 2 or 3, but got ${JSON.stringify(rawVersion)}.`);
|
|
}
|
|
if (proposals && (!corejsVersion || corejsVersion < 3)) {
|
|
throw new Error("The 'proposals' option is only supported when using 'corejs: 3'");
|
|
}
|
|
if (typeof regenerator !== "boolean") {
|
|
throw new Error("The 'regenerator' option must be undefined, or a boolean.");
|
|
}
|
|
const polyfillOpts = {
|
|
method: "usage-pure",
|
|
absoluteImports,
|
|
proposals,
|
|
[pluginsCompat]: {
|
|
useBabelRuntime: true,
|
|
runtimeVersion,
|
|
ext: "",
|
|
moduleName
|
|
}
|
|
};
|
|
return createRegeneratorPlugin(polyfillOpts, regenerator, corejsVersion === 2 ? createCorejs2Plugin(polyfillOpts) : corejsVersion === 3 ? createCorejs3Plugin(polyfillOpts) : null);
|
|
};
|
|
|
|
//# sourceMappingURL=polyfills.cjs.map
|