@zohodesk/react-cli 0.0.1-beta.17 → 0.0.1-beta.171
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/.eslintignore +1 -0
- package/.eslintrc.js +49 -10
- package/.prettierrc +6 -0
- package/CHANGELOG.md +5 -0
- package/README.md +859 -0
- package/bin/cli.js +215 -46
- package/cert/Tsicsezwild-22-23.crt +37 -0
- package/cert/Tsicsezwild-22-23.key +27 -0
- package/docs/CustomChunks.md +26 -0
- package/docs/DevStart.md +18 -0
- package/docs/HoverActive.md +12 -0
- package/docs/InstallNode.md +28 -0
- package/docs/TODOS.md +10 -0
- package/docs/ValueReplacer.md +60 -0
- package/docs/warnings_while_install.txt +35 -0
- package/files/eslintrc.js +62 -0
- package/files/prettierrc.js +3 -0
- package/lib/babel/cmjs-plugins-presets.js +24 -0
- package/lib/babel/es-plugins-presets.js +34 -0
- package/lib/common/getEntries.js +33 -46
- package/lib/common/getPublicPathConfig.js +40 -0
- package/lib/common/index.js +24 -19
- package/lib/common/splitChunks.js +110 -25
- package/lib/common/sslcertUpdater.js +59 -0
- package/lib/common/templateParameters.js +25 -0
- package/lib/common/testPattern.js +69 -0
- package/lib/common/valueReplacer.js +55 -0
- package/lib/configs/jest.config.js +31 -27
- package/lib/configs/libAlias.js +31 -0
- package/lib/configs/webpack.component.umd.config.js +46 -53
- package/lib/configs/webpack.css.umd.config.js +47 -46
- package/lib/configs/webpack.dev.config.js +99 -84
- package/lib/configs/webpack.docs.config.js +65 -57
- package/lib/configs/webpack.impact.config.js +109 -0
- package/lib/configs/webpack.prod.config.js +147 -104
- package/lib/hooks/docsProptypeHook.js +32 -38
- package/lib/jest/commitedFilesResult.js +144 -71
- package/lib/jest/coverageCollector.js +68 -35
- package/lib/jest/jsonMaker.js +54 -0
- package/lib/jest/preProcessors/cssPreprocessor.js +16 -18
- package/lib/jest/preProcessors/jsPreprocessor.js +5 -6
- package/lib/jest/preProcessors/otherFilesPreprocessor.js +5 -6
- package/lib/jest/result.js +92 -42
- package/lib/jest/run.js +75 -28
- package/lib/jest/setup.js +103 -102
- package/lib/loaderUtils/configsAssetsLoaders.js +117 -0
- package/lib/loaderUtils/getCSSLoaders.js +113 -0
- package/lib/loaderUtils/getDevJsLoaders.js +35 -23
- package/lib/loaderUtils/index.js +14 -7
- package/lib/loaders/docsLoader.js +15 -15
- package/lib/loaders/docsPropsLoader.js +14 -17
- package/lib/loaders/fileBountryLoader.js +17 -0
- package/lib/loaders/fileLoader.js +47 -38
- package/lib/loaders/scriptInstrumentLoader.js +23 -20
- package/lib/loaders/selectorMappingLoader.js +75 -0
- package/lib/loaders/workerLoader.js +136 -0
- package/lib/middlewares/HMRMiddleware.js +90 -72
- package/lib/middlewares/SSTMiddleware.js +21 -0
- package/lib/pluginUtils/getDevPlugins.js +177 -30
- package/lib/pluginUtils/getDocsPlugins.js +36 -15
- package/lib/pluginUtils/getLibraryImactPlugins.js +23 -0
- package/lib/pluginUtils/getLibraryPlugins.js +8 -10
- package/lib/pluginUtils/getProdPlugins.js +244 -37
- package/lib/pluginUtils/getServerPlugins.js +8 -11
- package/lib/pluginUtils/getUMDCSSPlugins.js +14 -18
- package/lib/pluginUtils/getUMDComponentPlugins.js +14 -9
- package/lib/pluginUtils/index.js +36 -43
- package/lib/plugins/CdnChangePlugin.js +77 -0
- package/lib/plugins/CleanupStatsPlugin.js +28 -0
- package/lib/plugins/EFCPlugin.js +241 -0
- package/lib/plugins/EFCPlugin.md +6 -0
- package/lib/plugins/EFCTemplatePlugin.js +151 -0
- package/lib/plugins/I18NInjectIntoIndexPlugin.js +141 -0
- package/lib/plugins/I18nSplitPlugin/I18nDebugPlugin.js +60 -0
- package/lib/plugins/I18nSplitPlugin/I18nDependency.js +44 -0
- package/lib/plugins/I18nSplitPlugin/I18nDownlodLogic.js +266 -0
- package/lib/plugins/I18nSplitPlugin/I18nFilesEmitter.js +183 -0
- package/lib/plugins/I18nSplitPlugin/I18nKeysIdentifer.js +100 -0
- package/lib/plugins/I18nSplitPlugin/I18nSplit.md +95 -0
- package/lib/plugins/I18nSplitPlugin/README.md +25 -0
- package/lib/plugins/I18nSplitPlugin/index.js +185 -0
- package/lib/plugins/I18nSplitPlugin/utils/collectI18nKeys.js +64 -0
- package/lib/plugins/I18nSplitPlugin/utils/getI18nFileUrlPathTemplate.js +13 -0
- package/lib/plugins/I18nSplitPlugin/utils/getI18nKeysFormModules.js +26 -0
- package/lib/plugins/I18nSplitPlugin/utils/hashUtils.js +40 -0
- package/lib/plugins/I18nSplitPlugin/utils/index.js +31 -0
- package/lib/plugins/I18nSplitPlugin/utils/propertiesUtils.js +112 -0
- package/lib/plugins/ManifestPlugin.js +86 -0
- package/lib/plugins/ModuleStatsPlugin.js +98 -97
- package/lib/plugins/OptimizeJSPlugin.js +41 -0
- package/lib/plugins/PublicPathCallbackPlugin.js +63 -0
- package/lib/plugins/PublicPathChangePlugin.js +226 -0
- package/lib/plugins/ReportGeneratePlugin.js +181 -0
- package/lib/plugins/RequireVariablePublicPlugin.js +30 -0
- package/lib/plugins/ResourceHintsPlugin.js +67 -0
- package/lib/plugins/RtlSplitPlugin/OverwriteCssPathForRTL.js +80 -0
- package/lib/plugins/RtlSplitPlugin/RtlCssPlugin.js +82 -0
- package/lib/plugins/RtlSplitPlugin/RtrSplit.md +30 -0
- package/lib/plugins/RtlSplitPlugin/replaceCssDirTemplate.js +26 -0
- package/lib/plugins/ScriptInstrumentPlugin.js +22 -37
- package/lib/plugins/ServiceWorkerPlugin.js +107 -0
- package/lib/plugins/ShadowDOMSupportPlugin.js +270 -0
- package/lib/plugins/SourceMapHookPlugin.js +25 -59
- package/lib/plugins/TPHashMappingPlugin.js +67 -0
- package/lib/plugins/UglifyCSSPlugin.js +39 -0
- package/lib/plugins/UnusedFilesFindPlugin.js +150 -97
- package/lib/plugins/index.js +127 -37
- package/lib/plugins/libraryImpactPlugin.js +190 -0
- package/lib/plugins/webpackwatchrunplugin.js +26 -0
- package/lib/postcss-plugins/ExcludePlugin.js +23 -0
- package/lib/postcss-plugins/RTLSplitPlugin.js +138 -0
- package/lib/postcss-plugins/ValueReplacer.js +46 -0
- package/lib/postcss-plugins/__test__/hoverActivePlugin.spec.js +22 -0
- package/lib/postcss-plugins/__test__/test1Input.css +39 -0
- package/lib/postcss-plugins/__test__/test1Output.css +39 -0
- package/lib/postcss-plugins/hoverActivePlugin.js +368 -0
- package/lib/postcss-plugins/variableModifier.js +243 -0
- package/lib/schemas/index.js +541 -65
- package/lib/servers/clusterHubServer.js +22 -26
- package/lib/servers/devBuild.js +102 -0
- package/lib/servers/docsServer.js +3 -5
- package/lib/servers/docsServerCore.js +94 -79
- package/lib/servers/getCliPath.js +28 -0
- package/lib/servers/helpServer.js +19 -21
- package/lib/servers/httpsOptions.js +18 -0
- package/lib/servers/impactServer.js +123 -115
- package/lib/servers/mockserver.js +44 -0
- package/lib/servers/nowatchserver.js +200 -0
- package/lib/servers/scrServer.js +147 -0
- package/lib/servers/server.js +134 -132
- package/lib/servers/ssServer.js +106 -70
- package/lib/sh/reportPublish.sh +16 -10
- package/lib/templates/CoverageScriptTemplate.js +45 -18
- package/lib/templates/WMSTemplate.js +17 -18
- package/lib/templates/linterConstant.js +10 -0
- package/lib/utils/babelPresets.js +12 -4
- package/lib/utils/buildstats.html +148 -0
- package/lib/utils/clean.js +12 -11
- package/lib/utils/copy.js +16 -109
- package/lib/utils/copyTimezones.js +21 -0
- package/lib/utils/createEventStream.js +24 -19
- package/lib/utils/cssClassNameGenerate.js +77 -0
- package/lib/utils/cssURLReplacer.js +136 -0
- package/lib/utils/dependencyPostPublish.js +42 -0
- package/lib/utils/fileUtils.js +125 -0
- package/lib/utils/folderIterator.js +47 -0
- package/lib/utils/getComponents.js +126 -0
- package/lib/utils/getCurrentBranch.js +11 -17
- package/lib/utils/getDependenciesImpactList.js +151 -0
- package/lib/utils/getHash.js +26 -0
- package/lib/utils/getIp.js +20 -0
- package/lib/utils/getOptions.js +113 -28
- package/lib/utils/getServerURL.js +25 -8
- package/lib/utils/index.js +283 -68
- package/lib/utils/init.js +2 -2
- package/lib/utils/initPreCommitHook.js +47 -27
- package/lib/utils/jsonHelper.js +106 -0
- package/lib/utils/libraryImpactConfig.js +63 -0
- package/lib/utils/lint/addScripts.js +27 -0
- package/lib/utils/lint/checkExistingConfig.js +67 -0
- package/lib/utils/lint/copyConfigs.js +24 -0
- package/lib/utils/lint/index.js +54 -0
- package/lib/utils/lint/lintScripts.js +11 -0
- package/lib/utils/lint/lintSetup.js +31 -0
- package/lib/utils/lint/lintStagedPreCommitHook.js +7 -0
- package/lib/utils/lint/question.js +30 -0
- package/lib/utils/lintReporter.js +142 -0
- package/lib/utils/mailSender.js +16 -25
- package/lib/utils/pullOrigin.js +28 -0
- package/lib/utils/reinstallDependencies.js +133 -0
- package/lib/utils/removeAttributes.js +25 -23
- package/lib/utils/repoClone.js +59 -63
- package/lib/utils/request.js +64 -77
- package/lib/utils/resultSchema.json +73 -0
- package/lib/utils/rtl.js +59 -0
- package/lib/utils/setEnvVariables.js +13 -0
- package/lib/utils/ssTestHack.js +48 -0
- package/lib/utils/switchBranch.js +28 -0
- package/lib/utils/urlConcat.js +22 -0
- package/lib/utils/useExitCleanup.js +55 -0
- package/npm8.md +9 -0
- package/package.json +96 -64
- package/postpublish.js +6 -0
- package/templates/app/.eslintrc.js +140 -0
- package/templates/app/README.md +12 -12
- package/templates/app/app/index.html +24 -8
- package/templates/app/app/properties/ApplicationResources_en_US.properties +1 -1
- package/templates/app/app/properties/i18nkeys.json +3 -3
- package/templates/app/docs/all.html +69 -69
- package/templates/app/mockapi/index.js +18 -13
- package/templates/app/package.json +37 -17
- package/templates/app/src/actions/SampleActions/index.js +37 -0
- package/templates/app/src/actions/index.js +65 -0
- package/templates/app/src/appUrls.js +19 -0
- package/templates/app/src/components/Alert/Alert.js +134 -0
- package/templates/app/src/components/Alert/Alert.module.css +79 -0
- package/templates/app/src/components/FreezeLayer/FreezeLayer.css +37 -0
- package/templates/app/src/components/FreezeLayer/FreezeLayer.js +84 -0
- package/templates/app/src/components/Sample/Sample.module.css +11 -0
- package/templates/app/src/components/Sample/SampleList.js +61 -0
- package/templates/app/src/components/Slider/Slider.css +41 -0
- package/templates/app/src/components/Slider/Slider.js +55 -0
- package/templates/app/src/containers/AlertContainer/index.js +15 -0
- package/templates/app/src/containers/AppContainer/index.js +96 -0
- package/templates/app/src/containers/AppContainer/index.module.css +27 -0
- package/templates/app/src/containers/CustomMatch/index.js +65 -0
- package/templates/app/src/containers/DevTools/index.js +10 -0
- package/templates/app/src/containers/Header/index.js +67 -0
- package/templates/app/src/containers/Header/index.module.css +43 -0
- package/templates/app/src/containers/Redirect/index.js +63 -0
- package/templates/app/src/containers/Redirector/index.js +47 -0
- package/templates/app/src/containers/SampleListContainer/ListContainer.js +42 -0
- package/templates/app/src/containers/SampleListContainer/ListContainer.module.css +3 -0
- package/templates/app/src/historyChange.js +5 -0
- package/templates/app/src/index.html +10 -0
- package/templates/app/src/index.js +24 -0
- package/templates/app/src/middleware/PromiseMiddleware.js +59 -0
- package/templates/app/src/reducers/alertData.js +11 -0
- package/templates/app/src/reducers/index.js +6 -0
- package/templates/app/src/reducers/samples.js +19 -0
- package/templates/app/src/store/configureStore.dev.js +51 -0
- package/templates/app/src/store/configureStore.js +5 -0
- package/templates/app/src/store/configureStore.prod.js +26 -0
- package/templates/app/src/util/Common.js +5 -0
- package/templates/app/src/util/RequestAPI.js +132 -0
- package/templates/appold/README.md +12 -0
- package/templates/appold/app/index.html +8 -0
- package/templates/appold/app/properties/ApplicationResources_en_US.properties +1 -0
- package/templates/appold/app/properties/i18nkeys.json +3 -0
- package/templates/appold/docs/all.html +69 -0
- package/templates/appold/mockapi/index.js +13 -0
- package/templates/{app → appold}/mockapi/tickets.json +0 -0
- package/templates/appold/package.json +17 -0
- package/templates/appold/src/components/Text/Text.css +0 -0
- package/templates/appold/src/components/Text/Text.js +23 -0
- package/templates/appold/src/components/Text/__tests__/Text.spec.js +30 -0
- package/templates/appold/src/components/Text/docs/Text__default.docs.js +16 -0
- package/templates/appold/src/components/docs.js +1 -0
- package/templates/appold/src/components/index.js +5 -0
- package/templates/appold/src/index.js +13 -0
- package/templates/docs/all.html +1 -1
- package/templates/docs/component.html +110 -69
- package/templates/docs/components.html +221 -0
- package/templates/docs/css/component.css +12 -14
- package/templates/docs/css/componentTest.css +7 -0
- package/templates/docs/css/style.css +150 -206
- package/templates/docs/impactReportTemplate.html +154 -0
- package/templates/docs/index.html +1482 -1336
- package/templates/library/src/index.js +0 -0
- package/.npmignore +0 -3
- package/cert/cert.pem +0 -129
- package/cert/key.pem +0 -27
- package/lib/common/getInsertAt.js +0 -36
- package/lib/common/getInsertIntoFunction.js +0 -13
- package/lib/configs/webpack.server.config.js +0 -93
- package/lib/plugins/ChunkManifestReplacePlugin.js +0 -94
- package/lib/plugins/RuntimePublicPathPlugin.js +0 -46
- package/lib/rmcntrlm.sh +0 -14
- package/lib/servers/nodeServer.js +0 -238
- package/lib/templates/HMRTemplate.js +0 -256
- package/lib/templates/publicPathTemplate.js +0 -16
- package/lib/utils/setConfig.js +0 -14
- package/node_modules/history/CHANGES.md +0 -395
- package/node_modules/history/DOMUtils.js +0 -3
- package/node_modules/history/ExecutionEnvironment.js +0 -3
- package/node_modules/history/LICENSE +0 -21
- package/node_modules/history/LocationUtils.js +0 -3
- package/node_modules/history/PathUtils.js +0 -3
- package/node_modules/history/README.md +0 -282
- package/node_modules/history/cjs/history.js +0 -933
- package/node_modules/history/cjs/history.min.js +0 -1
- package/node_modules/history/createBrowserHistory.js +0 -3
- package/node_modules/history/createHashHistory.js +0 -3
- package/node_modules/history/createMemoryHistory.js +0 -3
- package/node_modules/history/createTransitionManager.js +0 -3
- package/node_modules/history/es/DOMUtils.js +0 -7
- package/node_modules/history/es/ExecutionEnvironment.js +0 -7
- package/node_modules/history/es/LocationUtils.js +0 -7
- package/node_modules/history/es/PathUtils.js +0 -7
- package/node_modules/history/es/createBrowserHistory.js +0 -7
- package/node_modules/history/es/createHashHistory.js +0 -7
- package/node_modules/history/es/createMemoryHistory.js +0 -7
- package/node_modules/history/es/createTransitionManager.js +0 -7
- package/node_modules/history/es/warnAboutDeprecatedESMImport.js +0 -35
- package/node_modules/history/esm/history.js +0 -904
- package/node_modules/history/index.js +0 -7
- package/node_modules/history/package.json +0 -134
- package/node_modules/history/umd/history.js +0 -1059
- package/node_modules/history/umd/history.min.js +0 -1
- package/node_modules/history/warnAboutDeprecatedCJSRequire.js +0 -35
- package/templates/app/.npmignore +0 -9
- package/templates/library/.npmignore +0 -9
@@ -0,0 +1,117 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.configAudioLoader = configAudioLoader;
|
7
|
+
exports.configFontLoader = configFontLoader;
|
8
|
+
exports.configImageLoader = configImageLoader;
|
9
|
+
exports.configSVGLoader = configSVGLoader;
|
10
|
+
exports.configVideoLoader = configVideoLoader;
|
11
|
+
exports.configVideoLoaderObj = configVideoLoaderObj;
|
12
|
+
exports.createNameTemplate = createNameTemplate;
|
13
|
+
|
14
|
+
var _path = _interopRequireDefault(require("path"));
|
15
|
+
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
17
|
+
|
18
|
+
// function getLoaderOptionQueryString(params) {
|
19
|
+
const ImageExtRegex = /\.jpe?g$|\.gif$|\.png$/;
|
20
|
+
const FontExtRegex = /\.woff2|\.woff$|\.ttf$|\.eot$/;
|
21
|
+
const SVGExtRegex = /\.svg$/;
|
22
|
+
const AudioExtRegex = /\.ogg$/;
|
23
|
+
const VidioExtRegex = /\.mp4$/;
|
24
|
+
|
25
|
+
function createLoaderOptionQueryString(loaderName, nameTemplate, limit = 1000) {
|
26
|
+
return `${loaderName}?limit=${limit}&name=${nameTemplate}`;
|
27
|
+
}
|
28
|
+
|
29
|
+
function configImageLoader(nameTemplate) {
|
30
|
+
return {
|
31
|
+
test: ImageExtRegex,
|
32
|
+
use: createLoaderOptionQueryString('url-loader', `./images/${nameTemplate}`)
|
33
|
+
};
|
34
|
+
}
|
35
|
+
|
36
|
+
function configFontLoader(nameTemplate) {
|
37
|
+
return {
|
38
|
+
test: FontExtRegex,
|
39
|
+
use: createLoaderOptionQueryString('url-loader', `./fonts/${nameTemplate}`)
|
40
|
+
};
|
41
|
+
}
|
42
|
+
|
43
|
+
function configSVGLoader(nameTemplate) {
|
44
|
+
return {
|
45
|
+
test: SVGExtRegex,
|
46
|
+
use: createLoaderOptionQueryString('url-loader', `./fonts/${nameTemplate}`, 1)
|
47
|
+
};
|
48
|
+
}
|
49
|
+
|
50
|
+
function configAudioLoader(nameTemplate) {
|
51
|
+
return {
|
52
|
+
test: AudioExtRegex,
|
53
|
+
use: createLoaderOptionQueryString('file-loader', `./fonts/${nameTemplate}`, 1)
|
54
|
+
};
|
55
|
+
}
|
56
|
+
|
57
|
+
function configVideoLoader(nameTemplate) {
|
58
|
+
return {
|
59
|
+
test: VidioExtRegex,
|
60
|
+
use: createLoaderOptionQueryString('url-loader', `./images/${nameTemplate}`, 1)
|
61
|
+
};
|
62
|
+
}
|
63
|
+
|
64
|
+
function configVideoLoaderObj(nameTemplate) {
|
65
|
+
return {
|
66
|
+
test: VidioExtRegex,
|
67
|
+
use: {
|
68
|
+
loader: 'url-loader',
|
69
|
+
options: {
|
70
|
+
limit: 1000,
|
71
|
+
name: nameTemplate,
|
72
|
+
fallback: _path.default.join(__dirname, '..', 'loaders', 'fileLoader.js')
|
73
|
+
}
|
74
|
+
}
|
75
|
+
};
|
76
|
+
}
|
77
|
+
|
78
|
+
function createNameTemplate(enableChunkHash) {
|
79
|
+
const ext = `${enableChunkHash ? '.[hash:20]' : ''}.[ext]`;
|
80
|
+
return `[name]${ext}`;
|
81
|
+
}
|
82
|
+
/*
|
83
|
+
export function createImageAndFontsAndSVGLoaders(enableChunkHash) {
|
84
|
+
const nameTemplate = createNameTemplate(enableChunkHash);
|
85
|
+
return [
|
86
|
+
configImageLoader(nameTemplate),
|
87
|
+
configFontLoader(nameTemplate),
|
88
|
+
configSVGLoader(nameTemplate),
|
89
|
+
configAudioLoader(nameTemplate)
|
90
|
+
];
|
91
|
+
}
|
92
|
+
*/
|
93
|
+
|
94
|
+
/*
|
95
|
+
export function createLoaderOptionObject(
|
96
|
+
loaderName,
|
97
|
+
nameTemplate,
|
98
|
+
fallback,
|
99
|
+
limit = 1000
|
100
|
+
) {
|
101
|
+
return {
|
102
|
+
loader: loaderName,
|
103
|
+
options: {
|
104
|
+
limit,
|
105
|
+
name: nameTemplate,
|
106
|
+
fallback
|
107
|
+
}
|
108
|
+
};
|
109
|
+
}
|
110
|
+
|
111
|
+
function configLoaderObject(filter, loaderAndOptions) {
|
112
|
+
return {
|
113
|
+
test: filter,
|
114
|
+
use: loaderAndOptions
|
115
|
+
};
|
116
|
+
}
|
117
|
+
*/
|
@@ -0,0 +1,113 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.default = void 0;
|
7
|
+
|
8
|
+
var _miniCssExtractPlugin = _interopRequireDefault(require("mini-css-extract-plugin"));
|
9
|
+
|
10
|
+
var _cssClassNameGenerate = _interopRequireDefault(require("../utils/cssClassNameGenerate"));
|
11
|
+
|
12
|
+
var _utils = require("../utils");
|
13
|
+
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
15
|
+
|
16
|
+
let options = (0, _utils.getOptions)();
|
17
|
+
let isWin = process.platform === 'win32';
|
18
|
+
|
19
|
+
function windowsModification(array) {
|
20
|
+
return isWin ? array.map(r => r.replace(/\//g, '\\')) : array;
|
21
|
+
}
|
22
|
+
|
23
|
+
function excludeEmptyCheckPlugin({
|
24
|
+
enable,
|
25
|
+
ignore,
|
26
|
+
plugins
|
27
|
+
}) {
|
28
|
+
return enable ? ignore.length === 0 ? plugins : [require('../postcss-plugins/ExcludePlugin')({
|
29
|
+
ignore,
|
30
|
+
plugins
|
31
|
+
})] : [];
|
32
|
+
}
|
33
|
+
|
34
|
+
let getCSSLoaders = (plugins, exclude, mediaQueryHoverActiveString, classNameBlob, cssUniqueness, selectorReplace, cssHashSelectors, classNamePrefix) => {
|
35
|
+
// console.log('plugins:')
|
36
|
+
// console.log(plugins)
|
37
|
+
// console.log('exclude:')
|
38
|
+
// console.log(exclude)
|
39
|
+
const {
|
40
|
+
devCssFileBountry
|
41
|
+
} = options.app;
|
42
|
+
const {
|
43
|
+
valueReplacer
|
44
|
+
} = options.css;
|
45
|
+
const {
|
46
|
+
cssSelectorZipPath
|
47
|
+
} = options.impactService;
|
48
|
+
let rtlExcludeLocal = windowsModification(exclude.rtl);
|
49
|
+
let hoverActiveExcludeLocal = windowsModification(exclude.hoverActive);
|
50
|
+
let combinerMediaQueryExcludeLocal = windowsModification(exclude.combinerMediaQuery);
|
51
|
+
let cssLoaderOptions = {
|
52
|
+
// importLoaders: hasRTL||hoverActive ? 1 : 0,
|
53
|
+
importLoaders: 1,
|
54
|
+
modules: {},
|
55
|
+
sourceMap: true
|
56
|
+
};
|
57
|
+
|
58
|
+
if (classNameBlob) {
|
59
|
+
cssLoaderOptions.modules.localIdentName = classNameBlob;
|
60
|
+
} else {
|
61
|
+
cssLoaderOptions.modules.getLocalIdent = (0, _cssClassNameGenerate.default)(cssUniqueness, cssHashSelectors, classNamePrefix);
|
62
|
+
}
|
63
|
+
|
64
|
+
const postcssPlugins = [valueReplacer && require('../postcss-plugins/ValueReplacer')(valueReplacer), selectorReplace && require('postcss-selector-replace')(selectorReplace), ...excludeEmptyCheckPlugin({
|
65
|
+
enable: plugins.hasRTL,
|
66
|
+
ignore: rtlExcludeLocal,
|
67
|
+
plugins: [require('@zohodesk/postcss-rtl')({
|
68
|
+
addPrefixToSelector: function addPrefixToSelector(selector, prefix) {
|
69
|
+
if (prefix === '[dir]') {
|
70
|
+
return selector;
|
71
|
+
}
|
72
|
+
|
73
|
+
return `${prefix} ${selector}`; // Make selectors like [dir=rtl] > .selector
|
74
|
+
}
|
75
|
+
})]
|
76
|
+
}), ...excludeEmptyCheckPlugin({
|
77
|
+
enable: plugins.combinerMediaQuery,
|
78
|
+
ignore: combinerMediaQueryExcludeLocal,
|
79
|
+
plugins: [require('postcss-combine-media-query')]
|
80
|
+
}), ...excludeEmptyCheckPlugin({
|
81
|
+
enable: plugins.hoverActive,
|
82
|
+
ignore: hoverActiveExcludeLocal,
|
83
|
+
plugins: [require('../postcss-plugins/hoverActivePlugin')(mediaQueryHoverActiveString)]
|
84
|
+
}) // require('../postcss-plugins/variableModifier')()
|
85
|
+
].filter(Boolean);
|
86
|
+
return [cssSelectorZipPath && {
|
87
|
+
loader: require.resolve('../loaders/selectorMappingLoader')
|
88
|
+
}, {
|
89
|
+
loader: _miniCssExtractPlugin.default.loader,
|
90
|
+
options: {
|
91
|
+
publicPath: '../'
|
92
|
+
}
|
93
|
+
}, {
|
94
|
+
loader: 'css-loader',
|
95
|
+
options: cssLoaderOptions
|
96
|
+
}, devCssFileBountry && {
|
97
|
+
loader: require.resolve('../loaders/fileBountryLoader'),
|
98
|
+
options: {
|
99
|
+
devCssFileBountry
|
100
|
+
}
|
101
|
+
}, postcssPlugins.length > 0 ? {
|
102
|
+
loader: 'postcss-loader',
|
103
|
+
options: {
|
104
|
+
ident: 'postcss',
|
105
|
+
plugins: function () {
|
106
|
+
return postcssPlugins;
|
107
|
+
}
|
108
|
+
}
|
109
|
+
} : null].filter(Boolean);
|
110
|
+
};
|
111
|
+
|
112
|
+
var _default = getCSSLoaders;
|
113
|
+
exports.default = _default;
|
@@ -1,51 +1,62 @@
|
|
1
|
-
|
1
|
+
"use strict";
|
2
2
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
+
exports.default = void 0;
|
6
7
|
|
7
|
-
var _path = require(
|
8
|
-
|
9
|
-
var _path2 = _interopRequireDefault(_path);
|
8
|
+
var _path = _interopRequireDefault(require("path"));
|
10
9
|
|
11
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
12
11
|
|
13
|
-
|
14
|
-
|
12
|
+
let getDevJsLoaders = options => {
|
13
|
+
let {
|
14
|
+
app: {
|
15
|
+
disableES5Transpile,
|
16
|
+
instrumentScript,
|
17
|
+
devConsoleExculde
|
18
|
+
},
|
19
|
+
esLint: {
|
20
|
+
enable: enableEslint
|
21
|
+
}
|
22
|
+
} = options;
|
23
|
+
let loaders = [];
|
15
24
|
|
16
|
-
if (
|
17
|
-
|
18
|
-
|
19
|
-
|
25
|
+
if (instrumentScript) {
|
26
|
+
loaders.push({
|
27
|
+
loader: require.resolve('../loaders/scriptInstrumentLoader.js')
|
28
|
+
});
|
20
29
|
}
|
21
30
|
|
22
31
|
loaders.push({
|
23
32
|
loader: 'babel-loader',
|
24
33
|
options: {
|
25
|
-
presets: [[require.resolve('babel
|
34
|
+
presets: [[require.resolve('@babel/preset-env'), disableES5Transpile ? {
|
26
35
|
modules: false,
|
27
|
-
useBuiltIns:
|
36
|
+
useBuiltIns: 'usage',
|
37
|
+
corejs: 3,
|
28
38
|
targets: {
|
29
|
-
browsers: ['
|
39
|
+
browsers: ['last 3 Chrome versions', 'last 3 Firefox versions', 'last 3 Edge versions']
|
30
40
|
}
|
31
|
-
} : {
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
41
|
+
} : {
|
42
|
+
modules: false
|
43
|
+
}], require.resolve('@babel/preset-react')],
|
44
|
+
plugins: disableES5Transpile ? [require.resolve('@babel/plugin-syntax-dynamic-import'), require.resolve('babel-plugin-lodash'), require.resolve('@babel/plugin-proposal-object-rest-spread'), devConsoleExculde ? [require.resolve('babel-plugin-transform-remove-console'), {
|
45
|
+
exclude: ['error', 'log']
|
46
|
+
}] : null].filter(Boolean) : [require.resolve('@babel/plugin-syntax-dynamic-import'), require.resolve('babel-plugin-lodash'), require.resolve('@babel/plugin-proposal-object-rest-spread'), devConsoleExculde ? [require.resolve('babel-plugin-transform-remove-console'), {
|
47
|
+
exclude: ['error', 'log']
|
48
|
+
}] : null].filter(Boolean),
|
38
49
|
cacheDirectory: true
|
39
50
|
}
|
40
51
|
});
|
41
52
|
|
42
|
-
if (
|
53
|
+
if (enableEslint) {
|
43
54
|
loaders.push({
|
44
55
|
loader: 'eslint-loader',
|
45
56
|
options: {
|
46
57
|
emitError: true,
|
47
58
|
emitWarning: true,
|
48
|
-
configFile:
|
59
|
+
configFile: _path.default.join(__dirname, '..', '..', '.eslintrc.js')
|
49
60
|
}
|
50
61
|
});
|
51
62
|
}
|
@@ -53,4 +64,5 @@ var getDevJsLoaders = function getDevJsLoaders(needEslinting, disableES5Transpil
|
|
53
64
|
return loaders;
|
54
65
|
};
|
55
66
|
|
56
|
-
|
67
|
+
var _default = getDevJsLoaders;
|
68
|
+
exports.default = _default;
|
package/lib/loaderUtils/index.js
CHANGED
@@ -1,16 +1,23 @@
|
|
1
|
-
|
1
|
+
"use strict";
|
2
2
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
|
7
|
-
var _getDevJsLoaders = require('./getDevJsLoaders');
|
8
|
-
|
9
|
-
Object.defineProperty(exports, 'getDevJsLoaders', {
|
6
|
+
Object.defineProperty(exports, "getCSSLoaders", {
|
10
7
|
enumerable: true,
|
11
|
-
get: function
|
12
|
-
return
|
8
|
+
get: function () {
|
9
|
+
return _getCSSLoaders.default;
|
13
10
|
}
|
14
11
|
});
|
12
|
+
Object.defineProperty(exports, "getDevJsLoaders", {
|
13
|
+
enumerable: true,
|
14
|
+
get: function () {
|
15
|
+
return _getDevJsLoaders.default;
|
16
|
+
}
|
17
|
+
});
|
18
|
+
|
19
|
+
var _getDevJsLoaders = _interopRequireDefault(require("./getDevJsLoaders"));
|
20
|
+
|
21
|
+
var _getCSSLoaders = _interopRequireDefault(require("./getCSSLoaders"));
|
15
22
|
|
16
23
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
@@ -1,22 +1,22 @@
|
|
1
|
-
|
1
|
+
"use strict";
|
2
2
|
|
3
|
-
var _fs = require(
|
3
|
+
var _fs = _interopRequireDefault(require("fs"));
|
4
4
|
|
5
|
-
var
|
6
|
-
|
7
|
-
var _path = require('path');
|
8
|
-
|
9
|
-
var _path2 = _interopRequireDefault(_path);
|
5
|
+
var _path = _interopRequireDefault(require("path"));
|
10
6
|
|
11
7
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
12
8
|
|
13
9
|
module.exports = function (source) {
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
10
|
+
let comNameAry = this.resourcePath.split(_path.default.sep);
|
11
|
+
let filePath = this.resourcePath;
|
12
|
+
|
13
|
+
let appPath = _fs.default.realpathSync(process.cwd());
|
14
|
+
|
15
|
+
let changePath = filePath.replace('/lib/', '/src/');
|
16
|
+
let comName = comNameAry[comNameAry.length - 1];
|
17
|
+
let name = comName.substring(0, comName.lastIndexOf('.'));
|
18
|
+
|
19
|
+
let src = _fs.default.readFileSync(filePath.startsWith(appPath) ? filePath : changePath).toString();
|
20
|
+
|
21
|
+
return `${source};${name}.source=${JSON.stringify(src)};${name}.filePath=${JSON.stringify(filePath)}`;
|
22
22
|
};
|
@@ -1,30 +1,27 @@
|
|
1
|
-
|
1
|
+
"use strict";
|
2
2
|
|
3
|
-
var _reactDocgen = require(
|
3
|
+
var _reactDocgen = _interopRequireDefault(require("react-docgen"));
|
4
4
|
|
5
|
-
var
|
5
|
+
var _path = _interopRequireDefault(require("path"));
|
6
6
|
|
7
|
-
var
|
8
|
-
|
9
|
-
var _path2 = _interopRequireDefault(_path);
|
10
|
-
|
11
|
-
var _utils = require('../utils');
|
7
|
+
var _utils = require("../utils");
|
12
8
|
|
13
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
14
10
|
|
15
11
|
// import loaderUtils from 'loader-utils';
|
16
|
-
module.exports =
|
17
|
-
|
18
|
-
|
12
|
+
module.exports = source => {
|
13
|
+
(void 0).cacheable && (void 0).cacheable(); // let query = loaderUtils.parseQuery(this.query);
|
14
|
+
|
15
|
+
let value = {};
|
19
16
|
|
20
|
-
var value = {};
|
21
17
|
try {
|
22
|
-
value =
|
18
|
+
value = _reactDocgen.default.parse(source);
|
23
19
|
} catch (e) {
|
24
20
|
(0, _utils.log)('ERROR in docgen-loader', e);
|
25
21
|
}
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
22
|
+
|
23
|
+
let comNameAry = (void 0).resourcePath.split(_path.default.sep);
|
24
|
+
let comName = comNameAry[comNameAry.length - 1];
|
25
|
+
let name = comName.substring(0, comName.lastIndexOf('.'));
|
26
|
+
return `${source};${name}.propsObj=${JSON.stringify(value)}`;
|
30
27
|
};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _path = _interopRequireDefault(require("path"));
|
4
|
+
|
5
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
6
|
+
|
7
|
+
module.exports = function (source) {
|
8
|
+
const {
|
9
|
+
rootContext,
|
10
|
+
resourcePath,
|
11
|
+
query
|
12
|
+
} = this;
|
13
|
+
const {
|
14
|
+
devCssFileBountry
|
15
|
+
} = query;
|
16
|
+
return `/*${devCssFileBountry} ${_path.default.relative(rootContext, resourcePath)}*/\n${source}`;
|
17
|
+
};
|
@@ -1,62 +1,64 @@
|
|
1
|
-
|
1
|
+
"use strict";
|
2
2
|
|
3
|
-
var _path = require(
|
3
|
+
var _path = _interopRequireDefault(require("path"));
|
4
4
|
|
5
|
-
var
|
5
|
+
var _loaderUtils = _interopRequireDefault(require("loader-utils"));
|
6
6
|
|
7
|
-
var
|
8
|
-
|
9
|
-
var _loaderUtils2 = _interopRequireDefault(_loaderUtils);
|
7
|
+
var _common = require("../common");
|
10
8
|
|
11
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
12
10
|
|
13
11
|
module.exports = function (content) {
|
12
|
+
let {
|
13
|
+
userRequest
|
14
|
+
} = this._module.issuer;
|
14
15
|
this.cacheable && this.cacheable();
|
16
|
+
|
15
17
|
if (!this.emitFile) {
|
16
18
|
throw new Error('emitFile is required from module system');
|
17
19
|
}
|
18
20
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
// let configKey = query.config || 'fileLoader';
|
21
|
+
let options = _loaderUtils.default.getOptions(this) || {};
|
22
|
+
let query = this.resourceQuery ? _loaderUtils.default.parseQuery(this.resourceQuery) : {}; // let configKey = query.config || 'fileLoader';
|
23
23
|
|
24
|
-
|
25
|
-
publicPath: false,
|
24
|
+
let config = {
|
25
|
+
// publicPath: false,
|
26
26
|
useRelativePath: false,
|
27
|
-
name: '[hash].[ext]'
|
28
|
-
publicPathStrigify: true
|
29
|
-
};
|
27
|
+
name: '[hash].[ext]' // publicPathStrigify: true
|
30
28
|
|
31
|
-
// options takes precedence over config
|
32
|
-
|
29
|
+
}; // options takes precedence over config
|
30
|
+
|
31
|
+
Object.keys(options).forEach(attr => {
|
33
32
|
config[attr] = options[attr];
|
34
|
-
});
|
33
|
+
}); // query takes precedence over config and options
|
35
34
|
|
36
|
-
|
37
|
-
Object.keys(query).forEach(function (attr) {
|
35
|
+
Object.keys(query).forEach(attr => {
|
38
36
|
config[attr] = query[attr];
|
39
37
|
});
|
38
|
+
let context = config.context || options.context;
|
40
39
|
|
41
|
-
|
42
|
-
var url = _loaderUtils2.default.interpolateName(this, config.name, {
|
40
|
+
let url = _loaderUtils.default.interpolateName(this, config.name, {
|
43
41
|
context: context,
|
44
42
|
content: content,
|
45
43
|
regExp: config.regExp
|
46
44
|
});
|
47
45
|
|
48
|
-
|
46
|
+
let outputPath = '';
|
47
|
+
let filePath = this.resourcePath;
|
49
48
|
|
50
|
-
var filePath = this.resourcePath;
|
51
49
|
if (config.useRelativePath) {
|
52
|
-
|
53
|
-
|
54
|
-
|
50
|
+
let issuerContext = this._module && this._module.issuer && this._module.issuer.context || context;
|
51
|
+
|
52
|
+
let relativeUrl = issuerContext && _path.default.relative(issuerContext, filePath).split(_path.default.sep).join('/');
|
53
|
+
|
54
|
+
let relativePath = relativeUrl && `${_path.default.dirname(relativeUrl)}/`;
|
55
|
+
|
55
56
|
if (~relativePath.indexOf('../')) {
|
56
|
-
outputPath =
|
57
|
+
outputPath = _path.default.posix.join(outputPath, relativePath, url);
|
57
58
|
} else {
|
58
59
|
outputPath = relativePath + url;
|
59
60
|
}
|
61
|
+
|
60
62
|
url = relativePath + url;
|
61
63
|
} else if (config.outputPath) {
|
62
64
|
// support functions as outputPath to generate them dynamically
|
@@ -66,21 +68,28 @@ module.exports = function (content) {
|
|
66
68
|
outputPath = url;
|
67
69
|
}
|
68
70
|
|
69
|
-
|
70
|
-
if (config.publicPath !== false) {
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
71
|
+
let requestFromJS = /\.js$/.test(userRequest);
|
72
|
+
let publicPath = requestFromJS ? (0, _common.getPublicPathConfig)(url) : `__webpack_public_path__ + ${JSON.stringify(url)}`; // if (config.publicPath !== false) {
|
73
|
+
// // support functions as publicPath to generate them dynamically
|
74
|
+
// if (config.publicPathStringify) {
|
75
|
+
// publicPath = JSON.Stringify(
|
76
|
+
// typeof config.publicPath === 'function'
|
77
|
+
// ? config.publicPath(url)
|
78
|
+
// : config.publicPath + url
|
79
|
+
// );
|
80
|
+
// } else {
|
81
|
+
// publicPath =
|
82
|
+
// typeof config.publicPath === 'function'
|
83
|
+
// ? config.publicPath(url)
|
84
|
+
// : config.publicPath + url;
|
85
|
+
// }
|
86
|
+
// }
|
78
87
|
|
79
88
|
if (query.emitFile === undefined || query.emitFile) {
|
80
89
|
this.emitFile(outputPath, content);
|
81
90
|
}
|
82
91
|
|
83
|
-
return
|
92
|
+
return `module.exports = ${publicPath};`;
|
84
93
|
};
|
85
94
|
|
86
95
|
module.exports.raw = true;
|
@@ -1,16 +1,16 @@
|
|
1
|
-
|
1
|
+
"use strict";
|
2
2
|
|
3
|
-
var
|
3
|
+
var esprima = _interopRequireWildcard(require("esprima"));
|
4
4
|
|
5
|
-
var
|
5
|
+
var _escodegen = _interopRequireDefault(require("escodegen"));
|
6
6
|
|
7
|
-
|
7
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
8
8
|
|
9
|
-
var
|
9
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
10
10
|
|
11
|
-
function
|
11
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
12
12
|
|
13
|
-
|
13
|
+
let start = {
|
14
14
|
type: 'ExpressionStatement',
|
15
15
|
expression: {
|
16
16
|
type: 'CallExpression',
|
@@ -54,24 +54,30 @@ var start = {
|
|
54
54
|
}
|
55
55
|
};
|
56
56
|
|
57
|
-
|
58
|
-
|
59
|
-
|
57
|
+
let scriptInstrumentLoader = function (source) {
|
58
|
+
let parsed = esprima.parseModule(source, {
|
59
|
+
jsx: true
|
60
|
+
});
|
61
|
+
|
62
|
+
for (let i in parsed.body) {
|
60
63
|
if (parsed.body[i].type === 'FunctionDeclaration' || parsed.body[i].type === 'ExportDefaultDeclaration' || parsed.body[i].type === 'ExportNamedDeclaration') {
|
61
|
-
|
64
|
+
let ParsedTemp;
|
65
|
+
|
62
66
|
if (parsed.body[i].type === 'FunctionDeclaration') {
|
63
67
|
ParsedTemp = parsed.body[i];
|
64
68
|
} else {
|
65
69
|
ParsedTemp = parsed.body[i].declaration;
|
66
70
|
}
|
71
|
+
|
67
72
|
if (ParsedTemp) {
|
68
73
|
if (ParsedTemp.id) {
|
69
|
-
|
74
|
+
let funcname = ParsedTemp.id.name;
|
75
|
+
|
70
76
|
if (funcname !== 'mapStateToProps') {
|
71
77
|
if (!funcname.includes('_')) {
|
72
|
-
|
73
|
-
startFunc.expression.arguments[0].value =
|
74
|
-
startFunc.expression.arguments[0].raw =
|
78
|
+
let startFunc = JSON.parse(JSON.stringify(start));
|
79
|
+
startFunc.expression.arguments[0].value = this.resourcePath;
|
80
|
+
startFunc.expression.arguments[0].raw = this.resourcePath;
|
75
81
|
startFunc.expression.arguments[1].value = funcname;
|
76
82
|
startFunc.expression.arguments[1].raw = funcname;
|
77
83
|
ParsedTemp.body.body.unshift(startFunc);
|
@@ -82,8 +88,7 @@ var scriptInstrumentLoader = function scriptInstrumentLoader(source) {
|
|
82
88
|
}
|
83
89
|
}
|
84
90
|
|
85
|
-
return
|
86
|
-
// function removeDuplicates(arr) {
|
91
|
+
return _escodegen.default.generate(parsed); // function removeDuplicates(arr) {
|
87
92
|
// let uniqueArray = [];
|
88
93
|
// for (let i = 0; i < arr.length; i++) {
|
89
94
|
// if (uniqueArray.indexOf(arr[i]) == -1) {
|
@@ -95,9 +100,7 @@ var scriptInstrumentLoader = function scriptInstrumentLoader(source) {
|
|
95
100
|
// funcArray = removeDuplicates(funcArray);
|
96
101
|
};
|
97
102
|
|
98
|
-
module.exports = scriptInstrumentLoader;
|
99
|
-
|
100
|
-
// let start = {
|
103
|
+
module.exports = scriptInstrumentLoader; // let start = {
|
101
104
|
// type: 'ExpressionStatement',
|
102
105
|
// expression: {
|
103
106
|
// type: 'CallExpression',
|