ui5-tooling-transpile
Advanced tools
Comparing version 3.3.5 to 3.3.6
@@ -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 @@ |
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
100255
1072
15