@zohodesk/client_build_tool 0.0.10-exp.3 → 0.0.10-exp.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -10
- package/README.md +0 -10
- package/lib/schemas/defaultConfigValues.js +1 -4
- package/lib/shared/babel/getBabelPlugin.js +4 -9
- package/lib/shared/babel/runBabelForTsFile.js +1 -1
- package/lib/shared/postcss/custom_postcss_plugins/VariableModificationPlugin/index.js +1 -1
- package/lib/shared/server/mockApiHandler.js +0 -7
- package/npm-shrinkwrap.json +32 -8240
- package/package.json +5 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
# Changelog and Release Notes
|
|
2
|
-
# v0.0.10 (12-05-2025)
|
|
3
|
-
**Feature:-**
|
|
4
|
-
- `alias` support for `build:es` and `build:lib`
|
|
5
|
-
- Add babel-plugin-module-resolver dependencies
|
|
6
|
-
- Modify getBabelPlugin to include module resolver with aliases
|
|
7
2
|
|
|
8
|
-
**Bug Fix:-**
|
|
9
|
-
- Enhance runBabelForTSFile to handle both .tsx and .ts file extensions
|
|
10
|
-
- Update mockApiHandler to ensure mock function is called correctly
|
|
11
3
|
|
|
12
|
-
**Change:-**
|
|
13
|
-
- Refactor defaultConfigValues.js to include cli options for enableRTLSplit
|
|
14
4
|
|
|
15
5
|
**Feature:-**
|
|
16
6
|
- externals was added to Prevent bundling of certain imported packages and retrieve these external dependencies at runtime.
|
package/README.md
CHANGED
|
@@ -99,18 +99,8 @@ fixes :-
|
|
|
99
99
|
- preload plc undefined url fixed
|
|
100
100
|
|
|
101
101
|
# Changelog and Release Notes
|
|
102
|
-
# v0.0.10 (12-05-2025)
|
|
103
|
-
**Feature:-**
|
|
104
|
-
- `alias` support for `build:es` and `build:lib`
|
|
105
|
-
- Add babel-plugin-module-resolver dependencies
|
|
106
|
-
- Modify getBabelPlugin to include module resolver with aliases
|
|
107
102
|
|
|
108
|
-
**Bug Fix:-**
|
|
109
|
-
- Enhance runBabelForTSFile to handle both .tsx and .ts file extensions
|
|
110
|
-
- Update mockApiHandler to ensure mock function is called correctly
|
|
111
103
|
|
|
112
|
-
**Change:-**
|
|
113
|
-
- Refactor defaultConfigValues.js to include cli options for enableRTLSplit
|
|
114
104
|
|
|
115
105
|
**Feature:-**
|
|
116
106
|
- externals was added to Prevent bundling of certain imported packages and retrieve these external dependencies at runtime.
|
|
@@ -115,10 +115,7 @@ var _default = {
|
|
|
115
115
|
// Name Suggestions `customizations` this will be easier then `plugin` to understand for developers
|
|
116
116
|
plugins: {
|
|
117
117
|
rtlSplit: {
|
|
118
|
-
enableRTLSplit:
|
|
119
|
-
value: false,
|
|
120
|
-
cli: 'enable_rtl_split'
|
|
121
|
-
},
|
|
118
|
+
enableRTLSplit: false,
|
|
122
119
|
templateLabel: '{{--dir}}',
|
|
123
120
|
disableMinifySelector: false,
|
|
124
121
|
dirVarName: 'document.dir'
|
|
@@ -20,14 +20,7 @@ function getBabelPlugin(options) {
|
|
|
20
20
|
const {
|
|
21
21
|
mode
|
|
22
22
|
} = options;
|
|
23
|
-
|
|
24
|
-
alias
|
|
25
|
-
} = options.resolve; // let customPlugins = [];
|
|
26
|
-
|
|
27
|
-
let customPlugins = [[require.resolve('babel-plugin-module-resolver'), {
|
|
28
|
-
root: ['./'],
|
|
29
|
-
alias
|
|
30
|
-
}]];
|
|
23
|
+
let customPlugins = [];
|
|
31
24
|
const {
|
|
32
25
|
babelCustomizations
|
|
33
26
|
} = options;
|
|
@@ -39,4 +32,6 @@ function getBabelPlugin(options) {
|
|
|
39
32
|
}
|
|
40
33
|
|
|
41
34
|
return customPlugins.filter(Boolean);
|
|
42
|
-
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
;
|
|
@@ -25,6 +25,6 @@ function runBabelForTSFile({
|
|
|
25
25
|
// const jsSourceCode = readFileSync(filename).toString();
|
|
26
26
|
const babelConfig = (0, _babelWebConfig.babelWebConfig)(options, mode);
|
|
27
27
|
const result = (0, _core.transformFileSync)(filename, babelConfig);
|
|
28
|
-
(0, _copyFile.writeFile)(outputFile.replace('.tsx', '.js')
|
|
28
|
+
(0, _copyFile.writeFile)(outputFile.replace('.tsx', '.js'), result.code);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -259,7 +259,7 @@ var _default = ({
|
|
|
259
259
|
if (range) {
|
|
260
260
|
// console.log('multiple :', decl.value)
|
|
261
261
|
let newVal = '';
|
|
262
|
-
decl.value.split(' ').forEach(singleVal => {
|
|
262
|
+
decl.value.split(' ').filter(Boolean).forEach(singleVal => {
|
|
263
263
|
newVal += `${singleConvertor(singleVal, settings.replacements.px, {
|
|
264
264
|
decl,
|
|
265
265
|
filename,
|
|
@@ -44,13 +44,6 @@ function handleMockApi(mockEntryFile, app) {
|
|
|
44
44
|
const entryFilePath = (0, _constants.joinWithAppPath)(mockEntryFile); // eslint-disable-next-line no-use-before-define
|
|
45
45
|
|
|
46
46
|
const mockFunc = safeRequire(entryFilePath);
|
|
47
|
-
|
|
48
|
-
if (typeof mockFunc === 'function') {
|
|
49
|
-
// eslint-disable-next-line no-use-before-define
|
|
50
|
-
mockFunc(app);
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
47
|
mockFunc?.mockApi?.(app);
|
|
55
48
|
} // function handleMockApi(params) {
|
|
56
49
|
// }
|