mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
f47561fd7c
- 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.
28 lines
1.1 KiB
JavaScript
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;
|