Files
awesome-cordova-plugins/scripts/build/tslib-provider.js
T
Daniel Sogl f47561fd7c feat: migrate from Webpack to esbuild for optimized builds
- Updated build process to use esbuild, enhancing performance and reducing bundle size.
- Introduced custom esbuild plugins to replicate Webpack functionality, including removal of duplicate tslib helpers.
- Replaced the previous build script for ES5 with a new optimized version using esbuild.
- Added support for TypeScript in esbuild configuration, ensuring compatibility with existing code.
- Removed Webpack-related dependencies and configurations from package.json and renovate.json.

This transition aims to streamline the build process and improve overall efficiency.
2025-06-07 16:02:05 +02:00

28 lines
1.1 KiB
JavaScript

// This file provides tslib helpers to esbuild, replacing webpack's ProvidePlugin
var tslib = require('tslib');
// Export all tslib helpers to global scope
global.__extends = tslib.__extends;
global.__assign = tslib.__assign;
global.__rest = tslib.__rest;
global.__decorate = tslib.__decorate;
global.__param = tslib.__param;
global.__metadata = tslib.__metadata;
global.__awaiter = tslib.__awaiter;
global.__generator = tslib.__generator;
global.__exportStar = tslib.__exportStar;
global.__values = tslib.__values;
global.__read = tslib.__read;
global.__spread = tslib.__spread;
global.__spreadArrays = tslib.__spreadArrays;
global.__spreadArray = tslib.__spreadArray;
global.__await = tslib.__await;
global.__asyncGenerator = tslib.__asyncGenerator;
global.__asyncDelegator = tslib.__asyncDelegator;
global.__asyncValues = tslib.__asyncValues;
global.__makeTemplateObject = tslib.__makeTemplateObject;
global.__importStar = tslib.__importStar;
global.__importDefault = tslib.__importDefault;
global.__classPrivateFieldGet = tslib.__classPrivateFieldGet;
global.__classPrivateFieldSet = tslib.__classPrivateFieldSet;