Skip to content

Commit

Permalink
fix(ui5-tooling-modules): performance improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
petermuessig committed Oct 5, 2024
1 parent 36901dc commit 434de2f
Show file tree
Hide file tree
Showing 9 changed files with 12,016 additions and 143 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const { lt, gte } = require("semver");
// TODO:
// - enabled - disabled mapping
// - Externalize UI5 Web Components specific code
module.exports = function ({ log, resolveModule, framework, options } = {}) {
module.exports = function ({ log, resolveModule, getPackageJson, framework, options } = {}) {
// derive the configuration from the provided options
let { skip, scoping, scopeSuffix, enrichBusyIndicator } = Object.assign({ skip: false, scoping: true, enrichBusyIndicator: false }, options);

Expand Down Expand Up @@ -52,7 +52,7 @@ module.exports = function ({ log, resolveModule, framework, options } = {}) {
if (packageJsonPath) {
let packageJson;
try {
packageJson = JSON.parse(readFileSync(packageJsonPath, { encoding: "utf8" }));
packageJson = getPackageJson(packageJsonPath);
} catch (err) {
log.error(`Failed to parse package.json of ${npmPackage}`, err);
return undefined;
Expand Down
299 changes: 160 additions & 139 deletions packages/ui5-tooling-modules/lib/util.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
sap.ui.define(['ui5/ecosystem/demo/app/resources/index3'], (function (index) { 'use strict';

try { Object.defineProperty(index.src, "__" + "esModule", { value: true }); index.src.default = index.src; } catch (ex) {}

return index.src;

}));
Loading

0 comments on commit 434de2f

Please sign in to comment.