Socket
Socket
Sign inDemoInstall

ui5-tooling-transpile

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ui5-tooling-transpile - npm Package Compare versions

Comparing version 3.3.5 to 3.3.6

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

## [3.3.6](https://github.com/ui5-community/ui5-ecosystem-showcase/compare/ui5-tooling-transpile@3.3.5...ui5-tooling-transpile@3.3.6) (2024-03-04)
### Bug Fixes
* **ui5-tooling-transpile:** support JS-based babel config files ([#970](https://github.com/ui5-community/ui5-ecosystem-showcase/issues/970)) ([35cfa45](https://github.com/ui5-community/ui5-ecosystem-showcase/commit/35cfa450c16c4e6dd14b2f8fa8c0fc23b75cb28b)), closes [#966](https://github.com/ui5-community/ui5-ecosystem-showcase/issues/966)
## [3.3.5](https://github.com/ui5-community/ui5-ecosystem-showcase/compare/ui5-tooling-transpile@3.3.4...ui5-tooling-transpile@3.3.5) (2024-02-23)

@@ -8,0 +19,0 @@

18

lib/util.js

@@ -66,5 +66,7 @@ const os = require("os");

{
cwd,
configFile: false,
babelrc: false,
filename: "src/dummy.js" // necessary for ignore/include/exclude
filename: "src/dummy.js", // necessary for ignore/include/exclude
envName: process.env.BABEL_ENV || process.env.NODE_ENV || "development"
},

@@ -116,5 +118,13 @@ babelConfigOptions

// => no recursive merging of babel config is possible with this approach
babelConfigOptions = JSONC.parse(fs.readFileSync(configFile, { encoding: "utf8" }));
// let Babel lookup the configuration file with the Babel API
//partialConfig = await loadBabelConfigOptions({ configFile, filename: dir, babelrc: true });
try {
babelConfigOptions = JSONC.parse(fs.readFileSync(configFile, { encoding: "utf8" }));
} catch (err) {
// no JSON so we let Babel lookup the configuration file with the Babel API
const partialConfig = await babel.loadPartialConfigAsync({ cwd });
// but we only extract the presets and plugins and ignore the other properties
babelConfigOptions = {
plugins: partialConfig?.options?.plugins,
presets: partialConfig?.options?.presets
};
}
}

@@ -121,0 +131,0 @@

{
"name": "ui5-tooling-transpile",
"version": "3.3.5",
"version": "3.3.6",
"description": "UI5 tooling extensions to transpile code",

@@ -46,3 +46,3 @@ "author": "Jorge Martins, Peter Muessig",

},
"gitHead": "2ffd69e835caf238ce5980ae1342571748659bb1"
"gitHead": "2a4e62fa3e239af3071f670af2d4f9d0880ee264"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc