@oracle/oraclejet-tooling
Advanced tools
Comparing version 12.1.1 to 12.1.2
@@ -53,3 +53,4 @@ /** | ||
if (config.mainPathMapping) { | ||
injectContent = _getInjectContent(buildType, config.mainPathMapping); | ||
const pathMapping = (buildType === 'release') ? _restorePathMapping(config.mainPathMapping) : config.mainPathMapping; | ||
injectContent = _getInjectContent(buildType, pathMapping); | ||
injectContent = injectContent.replace(/'/g, '"'); | ||
@@ -229,2 +230,21 @@ injectContent = injectContent.replace(/\\/g, '/'); | ||
/** | ||
In rjsConfigGenerator we assign "empty:" value | ||
to the path mapping for already optimized components | ||
we need to restore it here to get a correct path injected into | ||
bundle.js file | ||
@param {object} pathsObj object with path mappings | ||
@return {object} restored path mappings object | ||
**/ | ||
function _restorePathMapping(pathsObj) { | ||
const componentCache = util.getComponentsCache(); | ||
const properties = Object.getOwnPropertyNames(pathsObj); | ||
properties.forEach((property) => { | ||
if (pathsObj[property] === "'empty:'" && componentCache[property].pathMap) { | ||
pathsObj[property] = `"${componentCache[property].pathMap}"`; // eslint-disable-line no-param-reassign | ||
delete componentCache[property].pathMap; | ||
} | ||
}); | ||
return pathsObj; | ||
} | ||
@@ -231,0 +251,0 @@ module.exports = { |
@@ -270,2 +270,7 @@ /** | ||
if (buildType === 'release' && _isMinified(exchangeComponent, version)) { | ||
// Assign the path to "empty:" to avoid re-optimization of the same code | ||
// causing errors. Keep a copy of the path to already optimized component | ||
// to be restored during path injection in mainJsInjector.js in function | ||
// _replaceReleasePath: | ||
exchangeComponents[exchangeComponent].pathMap = path.join(exchangeComponentPath, 'min'); | ||
exchangeComponentPath = 'empty:'; | ||
@@ -272,0 +277,0 @@ } |
{ | ||
"name": "@pack@", | ||
"version": "1.0.0", | ||
"jetVersion": "12.1.1", | ||
"jetVersion": "12.1.2", | ||
"type": "pack", | ||
@@ -6,0 +6,0 @@ "displayName": "A user friendly, translatable name of the pack.", |
{ | ||
"name": "@oracle/oraclejet-tooling", | ||
"version": "12.1.1", | ||
"version": "12.1.2", | ||
"license": "UPL-1.0", | ||
@@ -5,0 +5,0 @@ "description": "Programmatic API to build and serve Oracle JET web and mobile applications", |
@@ -1,2 +0,2 @@ | ||
# @oracle/oraclejet-tooling 12.1.1 | ||
# @oracle/oraclejet-tooling 12.1.2 | ||
@@ -9,3 +9,3 @@ ## About the tooling API | ||
## Installation | ||
This module will be automatically installed when you scaffold a web or hybrid mobile app following the [Oracle JET Developers Guide](http://www.oracle.com/pls/topic/lookup?ctx=jet1211&id=homepage). | ||
This module will be automatically installed when you scaffold a web or hybrid mobile app following the [Oracle JET Developers Guide](http://www.oracle.com/pls/topic/lookup?ctx=jet1212&id=homepage). | ||
@@ -12,0 +12,0 @@ ## [Contributing](https://github.com/oracle/oraclejet-tooling/blob/master/CONTRIBUTING.md) |
## Release Notes for oraclejet-tooling ## | ||
### 12.1.1 | ||
### 12.1.2 | ||
@@ -5,0 +5,0 @@ ### 11.0.0 |
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
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
604319
17166