diff --git a/src/Chunk.ts b/src/Chunk.ts index 6f9a4f2d0d5..94b4da625c5 100644 --- a/src/Chunk.ts +++ b/src/Chunk.ts @@ -34,6 +34,7 @@ import relativeId from './utils/relativeId'; import renderChunk from './utils/renderChunk'; import { RenderOptions } from './utils/renderHelpers'; import { makeUnique, renderNamePattern } from './utils/renderNamePattern'; +import { RESERVED_NAMES } from './utils/reservedNames'; import { sanitizeFileName } from './utils/sanitizeFileName'; import { timeEnd, timeStart } from './utils/timers'; import { MISSING_EXPORT_SHIM_VARIABLE } from './utils/variableNames'; @@ -248,12 +249,14 @@ export default class Chunk { const exportedVariables = Array.from(this.exports); if (mangle) { for (const variable of exportedVariables) { - safeExportName = toBase64(++i); - // skip past leading number identifiers - if (safeExportName.charCodeAt(0) === 49 /* '1' */) { - i += 9 * 64 ** (safeExportName.length - 1); - safeExportName = toBase64(i); - } + do { + safeExportName = toBase64(++i); + // skip past leading number identifiers + if (safeExportName.charCodeAt(0) === 49 /* '1' */) { + i += 9 * 64 ** (safeExportName.length - 1); + safeExportName = toBase64(i); + } + } while (RESERVED_NAMES[safeExportName]); this.exportNames[safeExportName] = variable; } } else { diff --git a/src/utils/reservedNames.ts b/src/utils/reservedNames.ts index ea1d87f286c..710cb9df452 100644 --- a/src/utils/reservedNames.ts +++ b/src/utils/reservedNames.ts @@ -4,7 +4,7 @@ export interface NameCollection { [name: string]: true; } -const RESERVED_NAMES: NameCollection = Object.assign(Object.create(null), { +export const RESERVED_NAMES: NameCollection = Object.assign(Object.create(null), { await: true, break: true, case: true, diff --git a/test/chunking-form/samples/sanitize-internal-exports/_config.js b/test/chunking-form/samples/sanitize-internal-exports/_config.js new file mode 100644 index 00000000000..b387cc182e6 --- /dev/null +++ b/test/chunking-form/samples/sanitize-internal-exports/_config.js @@ -0,0 +1,6 @@ +module.exports = { + description: 'make sure internal exports are sanitized', + options: { + input: ['main.js'] + } +}; diff --git a/test/chunking-form/samples/sanitize-internal-exports/_expected/amd/generated-chunk.js b/test/chunking-form/samples/sanitize-internal-exports/_expected/amd/generated-chunk.js new file mode 100644 index 00000000000..418773e8d02 --- /dev/null +++ b/test/chunking-form/samples/sanitize-internal-exports/_expected/amd/generated-chunk.js @@ -0,0 +1,549 @@ +define(['exports'], function (exports) { 'use strict'; + + var v1, + v2, + v3, + v4, + v5, + v6, + v7, + v8, + v9, + v10, + v11, + v12, + v13, + v14, + v15, + v16, + v17, + v18, + v19, + v20, + v21, + v22, + v23, + v24, + v25, + v26, + v27, + v28, + v29, + v30, + v31, + v32, + v33, + v34, + v35, + v36, + v37, + v38, + v39, + v40, + v41, + v42, + v43, + v44, + v45, + v46, + v47, + v48, + v49, + v50, + v51, + v52, + v53, + v54, + v55, + v56, + v57, + v58, + v59, + v60, + v61, + v62, + v63, + v64, + v65, + v66, + v67, + v68, + v69, + v70, + v71, + v72, + v73, + v74, + v75, + v76, + v77, + v78, + v79, + v80, + v81, + v82, + v83, + v84, + v85, + v86, + v87, + v88, + v89, + v90, + v91, + v92, + v93, + v94, + v95, + v96, + v97, + v98, + v99, + v100, + v101, + v102, + v103, + v104, + v105, + v106, + v107, + v108, + v109, + v110, + v111, + v112, + v113, + v114, + v115, + v116, + v117, + v118, + v119, + v120, + v121, + v122, + v123, + v124, + v125, + v126, + v127, + v128, + v129, + v130, + v131, + v132, + v133, + v134, + v135, + v136, + v137, + v138, + v139, + v140, + v141, + v142, + v143, + v144, + v145, + v146, + v147, + v148, + v149, + v150, + v151, + v152, + v153, + v154, + v155, + v156, + v157, + v158, + v159, + v160, + v161, + v162, + v163, + v164, + v165, + v166, + v167, + v168, + v169, + v170, + v171, + v172, + v173, + v174, + v175, + v176, + v177, + v178, + v179, + v180, + v181, + v182, + v183, + v184, + v185, + v186, + v187, + v188, + v189, + v190, + v191, + v192, + v193, + v194, + v195, + v196, + v197, + v198, + v199, + v200, + v201, + v202, + v203, + v204, + v205, + v206, + v207, + v208, + v209, + v210, + v211, + v212, + v213, + v214, + v215, + v216, + v217, + v218, + v219, + v220, + v221, + v222, + v223, + v224, + v225, + v226, + v227, + v228, + v229, + v230, + v231, + v232, + v233, + v234, + v235, + v236, + v237, + v238, + v239, + v240, + v241, + v242, + v243, + v244, + v245, + v246, + v247, + v248, + v249, + v250, + v251, + v252, + v253, + v254, + v255, + v256, + v257, + v258, + v259, + v260, + v261, + v262, + v263, + v264, + v265, + v266, + v267, + v268, + v269, + v270, + v271, + v272; + + exports.v1 = v1; + exports.v10 = v10; + exports.v100 = v100; + exports.v101 = v101; + exports.v102 = v102; + exports.v103 = v103; + exports.v104 = v104; + exports.v105 = v105; + exports.v106 = v106; + exports.v107 = v107; + exports.v108 = v108; + exports.v109 = v109; + exports.v11 = v11; + exports.v110 = v110; + exports.v111 = v111; + exports.v112 = v112; + exports.v113 = v113; + exports.v114 = v114; + exports.v115 = v115; + exports.v116 = v116; + exports.v117 = v117; + exports.v118 = v118; + exports.v119 = v119; + exports.v12 = v12; + exports.v120 = v120; + exports.v121 = v121; + exports.v122 = v122; + exports.v123 = v123; + exports.v124 = v124; + exports.v125 = v125; + exports.v126 = v126; + exports.v127 = v127; + exports.v128 = v128; + exports.v129 = v129; + exports.v13 = v13; + exports.v130 = v130; + exports.v131 = v131; + exports.v132 = v132; + exports.v133 = v133; + exports.v134 = v134; + exports.v135 = v135; + exports.v136 = v136; + exports.v137 = v137; + exports.v138 = v138; + exports.v139 = v139; + exports.v14 = v14; + exports.v140 = v140; + exports.v141 = v141; + exports.v142 = v142; + exports.v143 = v143; + exports.v144 = v144; + exports.v145 = v145; + exports.v146 = v146; + exports.v147 = v147; + exports.v148 = v148; + exports.v149 = v149; + exports.v15 = v15; + exports.v150 = v150; + exports.v151 = v151; + exports.v152 = v152; + exports.v153 = v153; + exports.v154 = v154; + exports.v155 = v155; + exports.v156 = v156; + exports.v157 = v157; + exports.v158 = v158; + exports.v159 = v159; + exports.v16 = v16; + exports.v160 = v160; + exports.v161 = v161; + exports.v162 = v162; + exports.v163 = v163; + exports.v164 = v164; + exports.v165 = v165; + exports.v166 = v166; + exports.v167 = v167; + exports.v168 = v168; + exports.v169 = v169; + exports.v17 = v17; + exports.v170 = v170; + exports.v171 = v171; + exports.v172 = v172; + exports.v173 = v173; + exports.v174 = v174; + exports.v175 = v175; + exports.v176 = v176; + exports.v177 = v177; + exports.v178 = v178; + exports.v179 = v179; + exports.v18 = v18; + exports.v180 = v180; + exports.v181 = v181; + exports.v182 = v182; + exports.v183 = v183; + exports.v184 = v184; + exports.v185 = v185; + exports.v186 = v186; + exports.v187 = v187; + exports.v188 = v188; + exports.v189 = v189; + exports.v19 = v19; + exports.v190 = v190; + exports.v191 = v191; + exports.v192 = v192; + exports.v193 = v193; + exports.v194 = v194; + exports.v195 = v195; + exports.v196 = v196; + exports.v197 = v197; + exports.v198 = v198; + exports.v199 = v199; + exports.v2 = v2; + exports.v20 = v20; + exports.v200 = v200; + exports.v201 = v201; + exports.v202 = v202; + exports.v203 = v203; + exports.v204 = v204; + exports.v205 = v205; + exports.v206 = v206; + exports.v207 = v207; + exports.v208 = v208; + exports.v209 = v209; + exports.v21 = v21; + exports.v210 = v210; + exports.v211 = v211; + exports.v212 = v212; + exports.v213 = v213; + exports.v214 = v214; + exports.v215 = v215; + exports.v216 = v216; + exports.v217 = v217; + exports.v218 = v218; + exports.v219 = v219; + exports.v22 = v22; + exports.v220 = v220; + exports.v221 = v221; + exports.v222 = v222; + exports.v223 = v223; + exports.v224 = v224; + exports.v225 = v225; + exports.v226 = v226; + exports.v227 = v227; + exports.v228 = v228; + exports.v229 = v229; + exports.v23 = v23; + exports.v230 = v230; + exports.v231 = v231; + exports.v232 = v232; + exports.v233 = v233; + exports.v234 = v234; + exports.v235 = v235; + exports.v236 = v236; + exports.v237 = v237; + exports.v238 = v238; + exports.v239 = v239; + exports.v24 = v24; + exports.v240 = v240; + exports.v241 = v241; + exports.v242 = v242; + exports.v243 = v243; + exports.v244 = v244; + exports.v245 = v245; + exports.v246 = v246; + exports.v247 = v247; + exports.v248 = v248; + exports.v249 = v249; + exports.v25 = v25; + exports.v250 = v250; + exports.v251 = v251; + exports.v252 = v252; + exports.v253 = v253; + exports.v254 = v254; + exports.v255 = v255; + exports.v256 = v256; + exports.v257 = v257; + exports.v258 = v258; + exports.v259 = v259; + exports.v26 = v26; + exports.v260 = v260; + exports.v261 = v261; + exports.v262 = v262; + exports.v263 = v263; + exports.v264 = v264; + exports.v265 = v265; + exports.v266 = v266; + exports.v267 = v267; + exports.v268 = v268; + exports.v269 = v269; + exports.v27 = v27; + exports.v270 = v270; + exports.v271 = v271; + exports.v272 = v272; + exports.v28 = v28; + exports.v29 = v29; + exports.v3 = v3; + exports.v30 = v30; + exports.v31 = v31; + exports.v32 = v32; + exports.v33 = v33; + exports.v34 = v34; + exports.v35 = v35; + exports.v36 = v36; + exports.v37 = v37; + exports.v38 = v38; + exports.v39 = v39; + exports.v4 = v4; + exports.v40 = v40; + exports.v41 = v41; + exports.v42 = v42; + exports.v43 = v43; + exports.v44 = v44; + exports.v45 = v45; + exports.v46 = v46; + exports.v47 = v47; + exports.v48 = v48; + exports.v49 = v49; + exports.v5 = v5; + exports.v50 = v50; + exports.v51 = v51; + exports.v52 = v52; + exports.v53 = v53; + exports.v54 = v54; + exports.v55 = v55; + exports.v56 = v56; + exports.v57 = v57; + exports.v58 = v58; + exports.v59 = v59; + exports.v6 = v6; + exports.v60 = v60; + exports.v61 = v61; + exports.v62 = v62; + exports.v63 = v63; + exports.v64 = v64; + exports.v65 = v65; + exports.v66 = v66; + exports.v67 = v67; + exports.v68 = v68; + exports.v69 = v69; + exports.v7 = v7; + exports.v70 = v70; + exports.v71 = v71; + exports.v72 = v72; + exports.v73 = v73; + exports.v74 = v74; + exports.v75 = v75; + exports.v76 = v76; + exports.v77 = v77; + exports.v78 = v78; + exports.v79 = v79; + exports.v8 = v8; + exports.v80 = v80; + exports.v81 = v81; + exports.v82 = v82; + exports.v83 = v83; + exports.v84 = v84; + exports.v85 = v85; + exports.v86 = v86; + exports.v87 = v87; + exports.v88 = v88; + exports.v89 = v89; + exports.v9 = v9; + exports.v90 = v90; + exports.v91 = v91; + exports.v92 = v92; + exports.v93 = v93; + exports.v94 = v94; + exports.v95 = v95; + exports.v96 = v96; + exports.v97 = v97; + exports.v98 = v98; + exports.v99 = v99; + +}); diff --git a/test/chunking-form/samples/sanitize-internal-exports/_expected/amd/generated-chunk2.js b/test/chunking-form/samples/sanitize-internal-exports/_expected/amd/generated-chunk2.js new file mode 100644 index 00000000000..11ea24da7fa --- /dev/null +++ b/test/chunking-form/samples/sanitize-internal-exports/_expected/amd/generated-chunk2.js @@ -0,0 +1,7 @@ +define(['exports', './generated-chunk.js'], function (exports, __chunk_1) { 'use strict'; + + var lazy = () => __chunk_1.v1; + + exports.default = lazy; + +}); diff --git a/test/chunking-form/samples/sanitize-internal-exports/_expected/amd/main.js b/test/chunking-form/samples/sanitize-internal-exports/_expected/amd/main.js new file mode 100644 index 00000000000..f0e05ca8570 --- /dev/null +++ b/test/chunking-form/samples/sanitize-internal-exports/_expected/amd/main.js @@ -0,0 +1,281 @@ +define(['require', 'exports', './generated-chunk.js'], function (require, exports, __chunk_1) { 'use strict'; + + const lazy = new Promise(function (resolve, reject) { require(['./generated-chunk2.js'], resolve, reject) }); + + exports.v1 = __chunk_1.v1; + exports.v10 = __chunk_1.v10; + exports.v100 = __chunk_1.v100; + exports.v101 = __chunk_1.v101; + exports.v102 = __chunk_1.v102; + exports.v103 = __chunk_1.v103; + exports.v104 = __chunk_1.v104; + exports.v105 = __chunk_1.v105; + exports.v106 = __chunk_1.v106; + exports.v107 = __chunk_1.v107; + exports.v108 = __chunk_1.v108; + exports.v109 = __chunk_1.v109; + exports.v11 = __chunk_1.v11; + exports.v110 = __chunk_1.v110; + exports.v111 = __chunk_1.v111; + exports.v112 = __chunk_1.v112; + exports.v113 = __chunk_1.v113; + exports.v114 = __chunk_1.v114; + exports.v115 = __chunk_1.v115; + exports.v116 = __chunk_1.v116; + exports.v117 = __chunk_1.v117; + exports.v118 = __chunk_1.v118; + exports.v119 = __chunk_1.v119; + exports.v12 = __chunk_1.v12; + exports.v120 = __chunk_1.v120; + exports.v121 = __chunk_1.v121; + exports.v122 = __chunk_1.v122; + exports.v123 = __chunk_1.v123; + exports.v124 = __chunk_1.v124; + exports.v125 = __chunk_1.v125; + exports.v126 = __chunk_1.v126; + exports.v127 = __chunk_1.v127; + exports.v128 = __chunk_1.v128; + exports.v129 = __chunk_1.v129; + exports.v13 = __chunk_1.v13; + exports.v130 = __chunk_1.v130; + exports.v131 = __chunk_1.v131; + exports.v132 = __chunk_1.v132; + exports.v133 = __chunk_1.v133; + exports.v134 = __chunk_1.v134; + exports.v135 = __chunk_1.v135; + exports.v136 = __chunk_1.v136; + exports.v137 = __chunk_1.v137; + exports.v138 = __chunk_1.v138; + exports.v139 = __chunk_1.v139; + exports.v14 = __chunk_1.v14; + exports.v140 = __chunk_1.v140; + exports.v141 = __chunk_1.v141; + exports.v142 = __chunk_1.v142; + exports.v143 = __chunk_1.v143; + exports.v144 = __chunk_1.v144; + exports.v145 = __chunk_1.v145; + exports.v146 = __chunk_1.v146; + exports.v147 = __chunk_1.v147; + exports.v148 = __chunk_1.v148; + exports.v149 = __chunk_1.v149; + exports.v15 = __chunk_1.v15; + exports.v150 = __chunk_1.v150; + exports.v151 = __chunk_1.v151; + exports.v152 = __chunk_1.v152; + exports.v153 = __chunk_1.v153; + exports.v154 = __chunk_1.v154; + exports.v155 = __chunk_1.v155; + exports.v156 = __chunk_1.v156; + exports.v157 = __chunk_1.v157; + exports.v158 = __chunk_1.v158; + exports.v159 = __chunk_1.v159; + exports.v16 = __chunk_1.v16; + exports.v160 = __chunk_1.v160; + exports.v161 = __chunk_1.v161; + exports.v162 = __chunk_1.v162; + exports.v163 = __chunk_1.v163; + exports.v164 = __chunk_1.v164; + exports.v165 = __chunk_1.v165; + exports.v166 = __chunk_1.v166; + exports.v167 = __chunk_1.v167; + exports.v168 = __chunk_1.v168; + exports.v169 = __chunk_1.v169; + exports.v17 = __chunk_1.v17; + exports.v170 = __chunk_1.v170; + exports.v171 = __chunk_1.v171; + exports.v172 = __chunk_1.v172; + exports.v173 = __chunk_1.v173; + exports.v174 = __chunk_1.v174; + exports.v175 = __chunk_1.v175; + exports.v176 = __chunk_1.v176; + exports.v177 = __chunk_1.v177; + exports.v178 = __chunk_1.v178; + exports.v179 = __chunk_1.v179; + exports.v18 = __chunk_1.v18; + exports.v180 = __chunk_1.v180; + exports.v181 = __chunk_1.v181; + exports.v182 = __chunk_1.v182; + exports.v183 = __chunk_1.v183; + exports.v184 = __chunk_1.v184; + exports.v185 = __chunk_1.v185; + exports.v186 = __chunk_1.v186; + exports.v187 = __chunk_1.v187; + exports.v188 = __chunk_1.v188; + exports.v189 = __chunk_1.v189; + exports.v19 = __chunk_1.v19; + exports.v190 = __chunk_1.v190; + exports.v191 = __chunk_1.v191; + exports.v192 = __chunk_1.v192; + exports.v193 = __chunk_1.v193; + exports.v194 = __chunk_1.v194; + exports.v195 = __chunk_1.v195; + exports.v196 = __chunk_1.v196; + exports.v197 = __chunk_1.v197; + exports.v198 = __chunk_1.v198; + exports.v199 = __chunk_1.v199; + exports.v2 = __chunk_1.v2; + exports.v20 = __chunk_1.v20; + exports.v200 = __chunk_1.v200; + exports.v201 = __chunk_1.v201; + exports.v202 = __chunk_1.v202; + exports.v203 = __chunk_1.v203; + exports.v204 = __chunk_1.v204; + exports.v205 = __chunk_1.v205; + exports.v206 = __chunk_1.v206; + exports.v207 = __chunk_1.v207; + exports.v208 = __chunk_1.v208; + exports.v209 = __chunk_1.v209; + exports.v21 = __chunk_1.v21; + exports.v210 = __chunk_1.v210; + exports.v211 = __chunk_1.v211; + exports.v212 = __chunk_1.v212; + exports.v213 = __chunk_1.v213; + exports.v214 = __chunk_1.v214; + exports.v215 = __chunk_1.v215; + exports.v216 = __chunk_1.v216; + exports.v217 = __chunk_1.v217; + exports.v218 = __chunk_1.v218; + exports.v219 = __chunk_1.v219; + exports.v22 = __chunk_1.v22; + exports.v220 = __chunk_1.v220; + exports.v221 = __chunk_1.v221; + exports.v222 = __chunk_1.v222; + exports.v223 = __chunk_1.v223; + exports.v224 = __chunk_1.v224; + exports.v225 = __chunk_1.v225; + exports.v226 = __chunk_1.v226; + exports.v227 = __chunk_1.v227; + exports.v228 = __chunk_1.v228; + exports.v229 = __chunk_1.v229; + exports.v23 = __chunk_1.v23; + exports.v230 = __chunk_1.v230; + exports.v231 = __chunk_1.v231; + exports.v232 = __chunk_1.v232; + exports.v233 = __chunk_1.v233; + exports.v234 = __chunk_1.v234; + exports.v235 = __chunk_1.v235; + exports.v236 = __chunk_1.v236; + exports.v237 = __chunk_1.v237; + exports.v238 = __chunk_1.v238; + exports.v239 = __chunk_1.v239; + exports.v24 = __chunk_1.v24; + exports.v240 = __chunk_1.v240; + exports.v241 = __chunk_1.v241; + exports.v242 = __chunk_1.v242; + exports.v243 = __chunk_1.v243; + exports.v244 = __chunk_1.v244; + exports.v245 = __chunk_1.v245; + exports.v246 = __chunk_1.v246; + exports.v247 = __chunk_1.v247; + exports.v248 = __chunk_1.v248; + exports.v249 = __chunk_1.v249; + exports.v25 = __chunk_1.v25; + exports.v250 = __chunk_1.v250; + exports.v251 = __chunk_1.v251; + exports.v252 = __chunk_1.v252; + exports.v253 = __chunk_1.v253; + exports.v254 = __chunk_1.v254; + exports.v255 = __chunk_1.v255; + exports.v256 = __chunk_1.v256; + exports.v257 = __chunk_1.v257; + exports.v258 = __chunk_1.v258; + exports.v259 = __chunk_1.v259; + exports.v26 = __chunk_1.v26; + exports.v260 = __chunk_1.v260; + exports.v261 = __chunk_1.v261; + exports.v262 = __chunk_1.v262; + exports.v263 = __chunk_1.v263; + exports.v264 = __chunk_1.v264; + exports.v265 = __chunk_1.v265; + exports.v266 = __chunk_1.v266; + exports.v267 = __chunk_1.v267; + exports.v268 = __chunk_1.v268; + exports.v269 = __chunk_1.v269; + exports.v27 = __chunk_1.v27; + exports.v270 = __chunk_1.v270; + exports.v271 = __chunk_1.v271; + exports.v272 = __chunk_1.v272; + exports.v28 = __chunk_1.v28; + exports.v29 = __chunk_1.v29; + exports.v3 = __chunk_1.v3; + exports.v30 = __chunk_1.v30; + exports.v31 = __chunk_1.v31; + exports.v32 = __chunk_1.v32; + exports.v33 = __chunk_1.v33; + exports.v34 = __chunk_1.v34; + exports.v35 = __chunk_1.v35; + exports.v36 = __chunk_1.v36; + exports.v37 = __chunk_1.v37; + exports.v38 = __chunk_1.v38; + exports.v39 = __chunk_1.v39; + exports.v4 = __chunk_1.v4; + exports.v40 = __chunk_1.v40; + exports.v41 = __chunk_1.v41; + exports.v42 = __chunk_1.v42; + exports.v43 = __chunk_1.v43; + exports.v44 = __chunk_1.v44; + exports.v45 = __chunk_1.v45; + exports.v46 = __chunk_1.v46; + exports.v47 = __chunk_1.v47; + exports.v48 = __chunk_1.v48; + exports.v49 = __chunk_1.v49; + exports.v5 = __chunk_1.v5; + exports.v50 = __chunk_1.v50; + exports.v51 = __chunk_1.v51; + exports.v52 = __chunk_1.v52; + exports.v53 = __chunk_1.v53; + exports.v54 = __chunk_1.v54; + exports.v55 = __chunk_1.v55; + exports.v56 = __chunk_1.v56; + exports.v57 = __chunk_1.v57; + exports.v58 = __chunk_1.v58; + exports.v59 = __chunk_1.v59; + exports.v6 = __chunk_1.v6; + exports.v60 = __chunk_1.v60; + exports.v61 = __chunk_1.v61; + exports.v62 = __chunk_1.v62; + exports.v63 = __chunk_1.v63; + exports.v64 = __chunk_1.v64; + exports.v65 = __chunk_1.v65; + exports.v66 = __chunk_1.v66; + exports.v67 = __chunk_1.v67; + exports.v68 = __chunk_1.v68; + exports.v69 = __chunk_1.v69; + exports.v7 = __chunk_1.v7; + exports.v70 = __chunk_1.v70; + exports.v71 = __chunk_1.v71; + exports.v72 = __chunk_1.v72; + exports.v73 = __chunk_1.v73; + exports.v74 = __chunk_1.v74; + exports.v75 = __chunk_1.v75; + exports.v76 = __chunk_1.v76; + exports.v77 = __chunk_1.v77; + exports.v78 = __chunk_1.v78; + exports.v79 = __chunk_1.v79; + exports.v8 = __chunk_1.v8; + exports.v80 = __chunk_1.v80; + exports.v81 = __chunk_1.v81; + exports.v82 = __chunk_1.v82; + exports.v83 = __chunk_1.v83; + exports.v84 = __chunk_1.v84; + exports.v85 = __chunk_1.v85; + exports.v86 = __chunk_1.v86; + exports.v87 = __chunk_1.v87; + exports.v88 = __chunk_1.v88; + exports.v89 = __chunk_1.v89; + exports.v9 = __chunk_1.v9; + exports.v90 = __chunk_1.v90; + exports.v91 = __chunk_1.v91; + exports.v92 = __chunk_1.v92; + exports.v93 = __chunk_1.v93; + exports.v94 = __chunk_1.v94; + exports.v95 = __chunk_1.v95; + exports.v96 = __chunk_1.v96; + exports.v97 = __chunk_1.v97; + exports.v98 = __chunk_1.v98; + exports.v99 = __chunk_1.v99; + exports.lazy = lazy; + + Object.defineProperty(exports, '__esModule', { value: true }); + +}); diff --git a/test/chunking-form/samples/sanitize-internal-exports/_expected/cjs/generated-chunk.js b/test/chunking-form/samples/sanitize-internal-exports/_expected/cjs/generated-chunk.js new file mode 100644 index 00000000000..605ce9b90ec --- /dev/null +++ b/test/chunking-form/samples/sanitize-internal-exports/_expected/cjs/generated-chunk.js @@ -0,0 +1,547 @@ +'use strict'; + +var v1, + v2, + v3, + v4, + v5, + v6, + v7, + v8, + v9, + v10, + v11, + v12, + v13, + v14, + v15, + v16, + v17, + v18, + v19, + v20, + v21, + v22, + v23, + v24, + v25, + v26, + v27, + v28, + v29, + v30, + v31, + v32, + v33, + v34, + v35, + v36, + v37, + v38, + v39, + v40, + v41, + v42, + v43, + v44, + v45, + v46, + v47, + v48, + v49, + v50, + v51, + v52, + v53, + v54, + v55, + v56, + v57, + v58, + v59, + v60, + v61, + v62, + v63, + v64, + v65, + v66, + v67, + v68, + v69, + v70, + v71, + v72, + v73, + v74, + v75, + v76, + v77, + v78, + v79, + v80, + v81, + v82, + v83, + v84, + v85, + v86, + v87, + v88, + v89, + v90, + v91, + v92, + v93, + v94, + v95, + v96, + v97, + v98, + v99, + v100, + v101, + v102, + v103, + v104, + v105, + v106, + v107, + v108, + v109, + v110, + v111, + v112, + v113, + v114, + v115, + v116, + v117, + v118, + v119, + v120, + v121, + v122, + v123, + v124, + v125, + v126, + v127, + v128, + v129, + v130, + v131, + v132, + v133, + v134, + v135, + v136, + v137, + v138, + v139, + v140, + v141, + v142, + v143, + v144, + v145, + v146, + v147, + v148, + v149, + v150, + v151, + v152, + v153, + v154, + v155, + v156, + v157, + v158, + v159, + v160, + v161, + v162, + v163, + v164, + v165, + v166, + v167, + v168, + v169, + v170, + v171, + v172, + v173, + v174, + v175, + v176, + v177, + v178, + v179, + v180, + v181, + v182, + v183, + v184, + v185, + v186, + v187, + v188, + v189, + v190, + v191, + v192, + v193, + v194, + v195, + v196, + v197, + v198, + v199, + v200, + v201, + v202, + v203, + v204, + v205, + v206, + v207, + v208, + v209, + v210, + v211, + v212, + v213, + v214, + v215, + v216, + v217, + v218, + v219, + v220, + v221, + v222, + v223, + v224, + v225, + v226, + v227, + v228, + v229, + v230, + v231, + v232, + v233, + v234, + v235, + v236, + v237, + v238, + v239, + v240, + v241, + v242, + v243, + v244, + v245, + v246, + v247, + v248, + v249, + v250, + v251, + v252, + v253, + v254, + v255, + v256, + v257, + v258, + v259, + v260, + v261, + v262, + v263, + v264, + v265, + v266, + v267, + v268, + v269, + v270, + v271, + v272; + +exports.v1 = v1; +exports.v10 = v10; +exports.v100 = v100; +exports.v101 = v101; +exports.v102 = v102; +exports.v103 = v103; +exports.v104 = v104; +exports.v105 = v105; +exports.v106 = v106; +exports.v107 = v107; +exports.v108 = v108; +exports.v109 = v109; +exports.v11 = v11; +exports.v110 = v110; +exports.v111 = v111; +exports.v112 = v112; +exports.v113 = v113; +exports.v114 = v114; +exports.v115 = v115; +exports.v116 = v116; +exports.v117 = v117; +exports.v118 = v118; +exports.v119 = v119; +exports.v12 = v12; +exports.v120 = v120; +exports.v121 = v121; +exports.v122 = v122; +exports.v123 = v123; +exports.v124 = v124; +exports.v125 = v125; +exports.v126 = v126; +exports.v127 = v127; +exports.v128 = v128; +exports.v129 = v129; +exports.v13 = v13; +exports.v130 = v130; +exports.v131 = v131; +exports.v132 = v132; +exports.v133 = v133; +exports.v134 = v134; +exports.v135 = v135; +exports.v136 = v136; +exports.v137 = v137; +exports.v138 = v138; +exports.v139 = v139; +exports.v14 = v14; +exports.v140 = v140; +exports.v141 = v141; +exports.v142 = v142; +exports.v143 = v143; +exports.v144 = v144; +exports.v145 = v145; +exports.v146 = v146; +exports.v147 = v147; +exports.v148 = v148; +exports.v149 = v149; +exports.v15 = v15; +exports.v150 = v150; +exports.v151 = v151; +exports.v152 = v152; +exports.v153 = v153; +exports.v154 = v154; +exports.v155 = v155; +exports.v156 = v156; +exports.v157 = v157; +exports.v158 = v158; +exports.v159 = v159; +exports.v16 = v16; +exports.v160 = v160; +exports.v161 = v161; +exports.v162 = v162; +exports.v163 = v163; +exports.v164 = v164; +exports.v165 = v165; +exports.v166 = v166; +exports.v167 = v167; +exports.v168 = v168; +exports.v169 = v169; +exports.v17 = v17; +exports.v170 = v170; +exports.v171 = v171; +exports.v172 = v172; +exports.v173 = v173; +exports.v174 = v174; +exports.v175 = v175; +exports.v176 = v176; +exports.v177 = v177; +exports.v178 = v178; +exports.v179 = v179; +exports.v18 = v18; +exports.v180 = v180; +exports.v181 = v181; +exports.v182 = v182; +exports.v183 = v183; +exports.v184 = v184; +exports.v185 = v185; +exports.v186 = v186; +exports.v187 = v187; +exports.v188 = v188; +exports.v189 = v189; +exports.v19 = v19; +exports.v190 = v190; +exports.v191 = v191; +exports.v192 = v192; +exports.v193 = v193; +exports.v194 = v194; +exports.v195 = v195; +exports.v196 = v196; +exports.v197 = v197; +exports.v198 = v198; +exports.v199 = v199; +exports.v2 = v2; +exports.v20 = v20; +exports.v200 = v200; +exports.v201 = v201; +exports.v202 = v202; +exports.v203 = v203; +exports.v204 = v204; +exports.v205 = v205; +exports.v206 = v206; +exports.v207 = v207; +exports.v208 = v208; +exports.v209 = v209; +exports.v21 = v21; +exports.v210 = v210; +exports.v211 = v211; +exports.v212 = v212; +exports.v213 = v213; +exports.v214 = v214; +exports.v215 = v215; +exports.v216 = v216; +exports.v217 = v217; +exports.v218 = v218; +exports.v219 = v219; +exports.v22 = v22; +exports.v220 = v220; +exports.v221 = v221; +exports.v222 = v222; +exports.v223 = v223; +exports.v224 = v224; +exports.v225 = v225; +exports.v226 = v226; +exports.v227 = v227; +exports.v228 = v228; +exports.v229 = v229; +exports.v23 = v23; +exports.v230 = v230; +exports.v231 = v231; +exports.v232 = v232; +exports.v233 = v233; +exports.v234 = v234; +exports.v235 = v235; +exports.v236 = v236; +exports.v237 = v237; +exports.v238 = v238; +exports.v239 = v239; +exports.v24 = v24; +exports.v240 = v240; +exports.v241 = v241; +exports.v242 = v242; +exports.v243 = v243; +exports.v244 = v244; +exports.v245 = v245; +exports.v246 = v246; +exports.v247 = v247; +exports.v248 = v248; +exports.v249 = v249; +exports.v25 = v25; +exports.v250 = v250; +exports.v251 = v251; +exports.v252 = v252; +exports.v253 = v253; +exports.v254 = v254; +exports.v255 = v255; +exports.v256 = v256; +exports.v257 = v257; +exports.v258 = v258; +exports.v259 = v259; +exports.v26 = v26; +exports.v260 = v260; +exports.v261 = v261; +exports.v262 = v262; +exports.v263 = v263; +exports.v264 = v264; +exports.v265 = v265; +exports.v266 = v266; +exports.v267 = v267; +exports.v268 = v268; +exports.v269 = v269; +exports.v27 = v27; +exports.v270 = v270; +exports.v271 = v271; +exports.v272 = v272; +exports.v28 = v28; +exports.v29 = v29; +exports.v3 = v3; +exports.v30 = v30; +exports.v31 = v31; +exports.v32 = v32; +exports.v33 = v33; +exports.v34 = v34; +exports.v35 = v35; +exports.v36 = v36; +exports.v37 = v37; +exports.v38 = v38; +exports.v39 = v39; +exports.v4 = v4; +exports.v40 = v40; +exports.v41 = v41; +exports.v42 = v42; +exports.v43 = v43; +exports.v44 = v44; +exports.v45 = v45; +exports.v46 = v46; +exports.v47 = v47; +exports.v48 = v48; +exports.v49 = v49; +exports.v5 = v5; +exports.v50 = v50; +exports.v51 = v51; +exports.v52 = v52; +exports.v53 = v53; +exports.v54 = v54; +exports.v55 = v55; +exports.v56 = v56; +exports.v57 = v57; +exports.v58 = v58; +exports.v59 = v59; +exports.v6 = v6; +exports.v60 = v60; +exports.v61 = v61; +exports.v62 = v62; +exports.v63 = v63; +exports.v64 = v64; +exports.v65 = v65; +exports.v66 = v66; +exports.v67 = v67; +exports.v68 = v68; +exports.v69 = v69; +exports.v7 = v7; +exports.v70 = v70; +exports.v71 = v71; +exports.v72 = v72; +exports.v73 = v73; +exports.v74 = v74; +exports.v75 = v75; +exports.v76 = v76; +exports.v77 = v77; +exports.v78 = v78; +exports.v79 = v79; +exports.v8 = v8; +exports.v80 = v80; +exports.v81 = v81; +exports.v82 = v82; +exports.v83 = v83; +exports.v84 = v84; +exports.v85 = v85; +exports.v86 = v86; +exports.v87 = v87; +exports.v88 = v88; +exports.v89 = v89; +exports.v9 = v9; +exports.v90 = v90; +exports.v91 = v91; +exports.v92 = v92; +exports.v93 = v93; +exports.v94 = v94; +exports.v95 = v95; +exports.v96 = v96; +exports.v97 = v97; +exports.v98 = v98; +exports.v99 = v99; diff --git a/test/chunking-form/samples/sanitize-internal-exports/_expected/cjs/generated-chunk2.js b/test/chunking-form/samples/sanitize-internal-exports/_expected/cjs/generated-chunk2.js new file mode 100644 index 00000000000..4ea4eee74c3 --- /dev/null +++ b/test/chunking-form/samples/sanitize-internal-exports/_expected/cjs/generated-chunk2.js @@ -0,0 +1,7 @@ +'use strict'; + +var __chunk_1 = require('./generated-chunk.js'); + +var lazy = () => __chunk_1.v1; + +exports.default = lazy; diff --git a/test/chunking-form/samples/sanitize-internal-exports/_expected/cjs/main.js b/test/chunking-form/samples/sanitize-internal-exports/_expected/cjs/main.js new file mode 100644 index 00000000000..4687a5bb309 --- /dev/null +++ b/test/chunking-form/samples/sanitize-internal-exports/_expected/cjs/main.js @@ -0,0 +1,281 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +var __chunk_1 = require('./generated-chunk.js'); + +const lazy = Promise.resolve(require('./generated-chunk2.js')); + +exports.v1 = __chunk_1.v1; +exports.v10 = __chunk_1.v10; +exports.v100 = __chunk_1.v100; +exports.v101 = __chunk_1.v101; +exports.v102 = __chunk_1.v102; +exports.v103 = __chunk_1.v103; +exports.v104 = __chunk_1.v104; +exports.v105 = __chunk_1.v105; +exports.v106 = __chunk_1.v106; +exports.v107 = __chunk_1.v107; +exports.v108 = __chunk_1.v108; +exports.v109 = __chunk_1.v109; +exports.v11 = __chunk_1.v11; +exports.v110 = __chunk_1.v110; +exports.v111 = __chunk_1.v111; +exports.v112 = __chunk_1.v112; +exports.v113 = __chunk_1.v113; +exports.v114 = __chunk_1.v114; +exports.v115 = __chunk_1.v115; +exports.v116 = __chunk_1.v116; +exports.v117 = __chunk_1.v117; +exports.v118 = __chunk_1.v118; +exports.v119 = __chunk_1.v119; +exports.v12 = __chunk_1.v12; +exports.v120 = __chunk_1.v120; +exports.v121 = __chunk_1.v121; +exports.v122 = __chunk_1.v122; +exports.v123 = __chunk_1.v123; +exports.v124 = __chunk_1.v124; +exports.v125 = __chunk_1.v125; +exports.v126 = __chunk_1.v126; +exports.v127 = __chunk_1.v127; +exports.v128 = __chunk_1.v128; +exports.v129 = __chunk_1.v129; +exports.v13 = __chunk_1.v13; +exports.v130 = __chunk_1.v130; +exports.v131 = __chunk_1.v131; +exports.v132 = __chunk_1.v132; +exports.v133 = __chunk_1.v133; +exports.v134 = __chunk_1.v134; +exports.v135 = __chunk_1.v135; +exports.v136 = __chunk_1.v136; +exports.v137 = __chunk_1.v137; +exports.v138 = __chunk_1.v138; +exports.v139 = __chunk_1.v139; +exports.v14 = __chunk_1.v14; +exports.v140 = __chunk_1.v140; +exports.v141 = __chunk_1.v141; +exports.v142 = __chunk_1.v142; +exports.v143 = __chunk_1.v143; +exports.v144 = __chunk_1.v144; +exports.v145 = __chunk_1.v145; +exports.v146 = __chunk_1.v146; +exports.v147 = __chunk_1.v147; +exports.v148 = __chunk_1.v148; +exports.v149 = __chunk_1.v149; +exports.v15 = __chunk_1.v15; +exports.v150 = __chunk_1.v150; +exports.v151 = __chunk_1.v151; +exports.v152 = __chunk_1.v152; +exports.v153 = __chunk_1.v153; +exports.v154 = __chunk_1.v154; +exports.v155 = __chunk_1.v155; +exports.v156 = __chunk_1.v156; +exports.v157 = __chunk_1.v157; +exports.v158 = __chunk_1.v158; +exports.v159 = __chunk_1.v159; +exports.v16 = __chunk_1.v16; +exports.v160 = __chunk_1.v160; +exports.v161 = __chunk_1.v161; +exports.v162 = __chunk_1.v162; +exports.v163 = __chunk_1.v163; +exports.v164 = __chunk_1.v164; +exports.v165 = __chunk_1.v165; +exports.v166 = __chunk_1.v166; +exports.v167 = __chunk_1.v167; +exports.v168 = __chunk_1.v168; +exports.v169 = __chunk_1.v169; +exports.v17 = __chunk_1.v17; +exports.v170 = __chunk_1.v170; +exports.v171 = __chunk_1.v171; +exports.v172 = __chunk_1.v172; +exports.v173 = __chunk_1.v173; +exports.v174 = __chunk_1.v174; +exports.v175 = __chunk_1.v175; +exports.v176 = __chunk_1.v176; +exports.v177 = __chunk_1.v177; +exports.v178 = __chunk_1.v178; +exports.v179 = __chunk_1.v179; +exports.v18 = __chunk_1.v18; +exports.v180 = __chunk_1.v180; +exports.v181 = __chunk_1.v181; +exports.v182 = __chunk_1.v182; +exports.v183 = __chunk_1.v183; +exports.v184 = __chunk_1.v184; +exports.v185 = __chunk_1.v185; +exports.v186 = __chunk_1.v186; +exports.v187 = __chunk_1.v187; +exports.v188 = __chunk_1.v188; +exports.v189 = __chunk_1.v189; +exports.v19 = __chunk_1.v19; +exports.v190 = __chunk_1.v190; +exports.v191 = __chunk_1.v191; +exports.v192 = __chunk_1.v192; +exports.v193 = __chunk_1.v193; +exports.v194 = __chunk_1.v194; +exports.v195 = __chunk_1.v195; +exports.v196 = __chunk_1.v196; +exports.v197 = __chunk_1.v197; +exports.v198 = __chunk_1.v198; +exports.v199 = __chunk_1.v199; +exports.v2 = __chunk_1.v2; +exports.v20 = __chunk_1.v20; +exports.v200 = __chunk_1.v200; +exports.v201 = __chunk_1.v201; +exports.v202 = __chunk_1.v202; +exports.v203 = __chunk_1.v203; +exports.v204 = __chunk_1.v204; +exports.v205 = __chunk_1.v205; +exports.v206 = __chunk_1.v206; +exports.v207 = __chunk_1.v207; +exports.v208 = __chunk_1.v208; +exports.v209 = __chunk_1.v209; +exports.v21 = __chunk_1.v21; +exports.v210 = __chunk_1.v210; +exports.v211 = __chunk_1.v211; +exports.v212 = __chunk_1.v212; +exports.v213 = __chunk_1.v213; +exports.v214 = __chunk_1.v214; +exports.v215 = __chunk_1.v215; +exports.v216 = __chunk_1.v216; +exports.v217 = __chunk_1.v217; +exports.v218 = __chunk_1.v218; +exports.v219 = __chunk_1.v219; +exports.v22 = __chunk_1.v22; +exports.v220 = __chunk_1.v220; +exports.v221 = __chunk_1.v221; +exports.v222 = __chunk_1.v222; +exports.v223 = __chunk_1.v223; +exports.v224 = __chunk_1.v224; +exports.v225 = __chunk_1.v225; +exports.v226 = __chunk_1.v226; +exports.v227 = __chunk_1.v227; +exports.v228 = __chunk_1.v228; +exports.v229 = __chunk_1.v229; +exports.v23 = __chunk_1.v23; +exports.v230 = __chunk_1.v230; +exports.v231 = __chunk_1.v231; +exports.v232 = __chunk_1.v232; +exports.v233 = __chunk_1.v233; +exports.v234 = __chunk_1.v234; +exports.v235 = __chunk_1.v235; +exports.v236 = __chunk_1.v236; +exports.v237 = __chunk_1.v237; +exports.v238 = __chunk_1.v238; +exports.v239 = __chunk_1.v239; +exports.v24 = __chunk_1.v24; +exports.v240 = __chunk_1.v240; +exports.v241 = __chunk_1.v241; +exports.v242 = __chunk_1.v242; +exports.v243 = __chunk_1.v243; +exports.v244 = __chunk_1.v244; +exports.v245 = __chunk_1.v245; +exports.v246 = __chunk_1.v246; +exports.v247 = __chunk_1.v247; +exports.v248 = __chunk_1.v248; +exports.v249 = __chunk_1.v249; +exports.v25 = __chunk_1.v25; +exports.v250 = __chunk_1.v250; +exports.v251 = __chunk_1.v251; +exports.v252 = __chunk_1.v252; +exports.v253 = __chunk_1.v253; +exports.v254 = __chunk_1.v254; +exports.v255 = __chunk_1.v255; +exports.v256 = __chunk_1.v256; +exports.v257 = __chunk_1.v257; +exports.v258 = __chunk_1.v258; +exports.v259 = __chunk_1.v259; +exports.v26 = __chunk_1.v26; +exports.v260 = __chunk_1.v260; +exports.v261 = __chunk_1.v261; +exports.v262 = __chunk_1.v262; +exports.v263 = __chunk_1.v263; +exports.v264 = __chunk_1.v264; +exports.v265 = __chunk_1.v265; +exports.v266 = __chunk_1.v266; +exports.v267 = __chunk_1.v267; +exports.v268 = __chunk_1.v268; +exports.v269 = __chunk_1.v269; +exports.v27 = __chunk_1.v27; +exports.v270 = __chunk_1.v270; +exports.v271 = __chunk_1.v271; +exports.v272 = __chunk_1.v272; +exports.v28 = __chunk_1.v28; +exports.v29 = __chunk_1.v29; +exports.v3 = __chunk_1.v3; +exports.v30 = __chunk_1.v30; +exports.v31 = __chunk_1.v31; +exports.v32 = __chunk_1.v32; +exports.v33 = __chunk_1.v33; +exports.v34 = __chunk_1.v34; +exports.v35 = __chunk_1.v35; +exports.v36 = __chunk_1.v36; +exports.v37 = __chunk_1.v37; +exports.v38 = __chunk_1.v38; +exports.v39 = __chunk_1.v39; +exports.v4 = __chunk_1.v4; +exports.v40 = __chunk_1.v40; +exports.v41 = __chunk_1.v41; +exports.v42 = __chunk_1.v42; +exports.v43 = __chunk_1.v43; +exports.v44 = __chunk_1.v44; +exports.v45 = __chunk_1.v45; +exports.v46 = __chunk_1.v46; +exports.v47 = __chunk_1.v47; +exports.v48 = __chunk_1.v48; +exports.v49 = __chunk_1.v49; +exports.v5 = __chunk_1.v5; +exports.v50 = __chunk_1.v50; +exports.v51 = __chunk_1.v51; +exports.v52 = __chunk_1.v52; +exports.v53 = __chunk_1.v53; +exports.v54 = __chunk_1.v54; +exports.v55 = __chunk_1.v55; +exports.v56 = __chunk_1.v56; +exports.v57 = __chunk_1.v57; +exports.v58 = __chunk_1.v58; +exports.v59 = __chunk_1.v59; +exports.v6 = __chunk_1.v6; +exports.v60 = __chunk_1.v60; +exports.v61 = __chunk_1.v61; +exports.v62 = __chunk_1.v62; +exports.v63 = __chunk_1.v63; +exports.v64 = __chunk_1.v64; +exports.v65 = __chunk_1.v65; +exports.v66 = __chunk_1.v66; +exports.v67 = __chunk_1.v67; +exports.v68 = __chunk_1.v68; +exports.v69 = __chunk_1.v69; +exports.v7 = __chunk_1.v7; +exports.v70 = __chunk_1.v70; +exports.v71 = __chunk_1.v71; +exports.v72 = __chunk_1.v72; +exports.v73 = __chunk_1.v73; +exports.v74 = __chunk_1.v74; +exports.v75 = __chunk_1.v75; +exports.v76 = __chunk_1.v76; +exports.v77 = __chunk_1.v77; +exports.v78 = __chunk_1.v78; +exports.v79 = __chunk_1.v79; +exports.v8 = __chunk_1.v8; +exports.v80 = __chunk_1.v80; +exports.v81 = __chunk_1.v81; +exports.v82 = __chunk_1.v82; +exports.v83 = __chunk_1.v83; +exports.v84 = __chunk_1.v84; +exports.v85 = __chunk_1.v85; +exports.v86 = __chunk_1.v86; +exports.v87 = __chunk_1.v87; +exports.v88 = __chunk_1.v88; +exports.v89 = __chunk_1.v89; +exports.v9 = __chunk_1.v9; +exports.v90 = __chunk_1.v90; +exports.v91 = __chunk_1.v91; +exports.v92 = __chunk_1.v92; +exports.v93 = __chunk_1.v93; +exports.v94 = __chunk_1.v94; +exports.v95 = __chunk_1.v95; +exports.v96 = __chunk_1.v96; +exports.v97 = __chunk_1.v97; +exports.v98 = __chunk_1.v98; +exports.v99 = __chunk_1.v99; +exports.lazy = lazy; diff --git a/test/chunking-form/samples/sanitize-internal-exports/_expected/es/generated-chunk.js b/test/chunking-form/samples/sanitize-internal-exports/_expected/es/generated-chunk.js new file mode 100644 index 00000000000..bd36d58c93a --- /dev/null +++ b/test/chunking-form/samples/sanitize-internal-exports/_expected/es/generated-chunk.js @@ -0,0 +1,274 @@ +var v1, + v2, + v3, + v4, + v5, + v6, + v7, + v8, + v9, + v10, + v11, + v12, + v13, + v14, + v15, + v16, + v17, + v18, + v19, + v20, + v21, + v22, + v23, + v24, + v25, + v26, + v27, + v28, + v29, + v30, + v31, + v32, + v33, + v34, + v35, + v36, + v37, + v38, + v39, + v40, + v41, + v42, + v43, + v44, + v45, + v46, + v47, + v48, + v49, + v50, + v51, + v52, + v53, + v54, + v55, + v56, + v57, + v58, + v59, + v60, + v61, + v62, + v63, + v64, + v65, + v66, + v67, + v68, + v69, + v70, + v71, + v72, + v73, + v74, + v75, + v76, + v77, + v78, + v79, + v80, + v81, + v82, + v83, + v84, + v85, + v86, + v87, + v88, + v89, + v90, + v91, + v92, + v93, + v94, + v95, + v96, + v97, + v98, + v99, + v100, + v101, + v102, + v103, + v104, + v105, + v106, + v107, + v108, + v109, + v110, + v111, + v112, + v113, + v114, + v115, + v116, + v117, + v118, + v119, + v120, + v121, + v122, + v123, + v124, + v125, + v126, + v127, + v128, + v129, + v130, + v131, + v132, + v133, + v134, + v135, + v136, + v137, + v138, + v139, + v140, + v141, + v142, + v143, + v144, + v145, + v146, + v147, + v148, + v149, + v150, + v151, + v152, + v153, + v154, + v155, + v156, + v157, + v158, + v159, + v160, + v161, + v162, + v163, + v164, + v165, + v166, + v167, + v168, + v169, + v170, + v171, + v172, + v173, + v174, + v175, + v176, + v177, + v178, + v179, + v180, + v181, + v182, + v183, + v184, + v185, + v186, + v187, + v188, + v189, + v190, + v191, + v192, + v193, + v194, + v195, + v196, + v197, + v198, + v199, + v200, + v201, + v202, + v203, + v204, + v205, + v206, + v207, + v208, + v209, + v210, + v211, + v212, + v213, + v214, + v215, + v216, + v217, + v218, + v219, + v220, + v221, + v222, + v223, + v224, + v225, + v226, + v227, + v228, + v229, + v230, + v231, + v232, + v233, + v234, + v235, + v236, + v237, + v238, + v239, + v240, + v241, + v242, + v243, + v244, + v245, + v246, + v247, + v248, + v249, + v250, + v251, + v252, + v253, + v254, + v255, + v256, + v257, + v258, + v259, + v260, + v261, + v262, + v263, + v264, + v265, + v266, + v267, + v268, + v269, + v270, + v271, + v272; + +export { v54 as $, v27 as A, v28 as B, v29 as C, v30 as D, v31 as E, v32 as F, v33 as G, v34 as H, v35 as I, v36 as J, v37 as K, v38 as L, v39 as M, v40 as N, v41 as O, v42 as P, v43 as Q, v44 as R, v45 as S, v46 as T, v47 as U, v48 as V, v49 as W, v50 as X, v51 as Y, v52 as Z, v53 as _, v1 as a, v118 as a$, v55 as a0, v56 as a1, v57 as a2, v58 as a3, v59 as a4, v60 as a5, v61 as a6, v62 as a7, v63 as a8, v64 as a9, v91 as aA, v92 as aB, v93 as aC, v94 as aD, v95 as aE, v96 as aF, v97 as aG, v98 as aH, v99 as aI, v100 as aJ, v101 as aK, v102 as aL, v103 as aM, v104 as aN, v105 as aO, v106 as aP, v107 as aQ, v108 as aR, v109 as aS, v110 as aT, v111 as aU, v112 as aV, v113 as aW, v114 as aX, v115 as aY, v116 as aZ, v117 as a_, v65 as aa, v66 as ab, v67 as ac, v68 as ad, v69 as ae, v70 as af, v71 as ag, v72 as ah, v73 as ai, v74 as aj, v75 as ak, v76 as al, v77 as am, v78 as an, v79 as ao, v80 as ap, v81 as aq, v82 as ar, v83 as as, v84 as at, v85 as au, v86 as av, v87 as aw, v88 as ax, v89 as ay, v90 as az, v2 as b, v182 as b$, v119 as b0, v120 as b1, v121 as b2, v122 as b3, v123 as b4, v124 as b5, v125 as b6, v126 as b7, v127 as b8, v128 as b9, v155 as bA, v156 as bB, v157 as bC, v158 as bD, v159 as bE, v160 as bF, v161 as bG, v162 as bH, v163 as bI, v164 as bJ, v165 as bK, v166 as bL, v167 as bM, v168 as bN, v169 as bO, v170 as bP, v171 as bQ, v172 as bR, v173 as bS, v174 as bT, v175 as bU, v176 as bV, v177 as bW, v178 as bX, v179 as bY, v180 as bZ, v181 as b_, v129 as ba, v130 as bb, v131 as bc, v132 as bd, v133 as be, v134 as bf, v135 as bg, v136 as bh, v137 as bi, v138 as bj, v139 as bk, v140 as bl, v141 as bm, v142 as bn, v143 as bo, v144 as bp, v145 as bq, v146 as br, v147 as bs, v148 as bt, v149 as bu, v150 as bv, v151 as bw, v152 as bx, v153 as by, v154 as bz, v3 as c, v246 as c$, v183 as c0, v184 as c1, v185 as c2, v186 as c3, v187 as c4, v188 as c5, v189 as c6, v190 as c7, v191 as c8, v192 as c9, v219 as cA, v220 as cB, v221 as cC, v222 as cD, v223 as cE, v224 as cF, v225 as cG, v226 as cH, v227 as cI, v228 as cJ, v229 as cK, v230 as cL, v231 as cM, v232 as cN, v233 as cO, v234 as cP, v235 as cQ, v236 as cR, v237 as cS, v238 as cT, v239 as cU, v240 as cV, v241 as cW, v242 as cX, v243 as cY, v244 as cZ, v245 as c_, v193 as ca, v194 as cb, v195 as cc, v196 as cd, v197 as ce, v198 as cf, v199 as cg, v200 as ch, v201 as ci, v202 as cj, v203 as ck, v204 as cl, v205 as cm, v206 as cn, v207 as co, v208 as cp, v209 as cq, v210 as cr, v211 as cs, v212 as ct, v213 as cu, v214 as cv, v215 as cw, v216 as cx, v217 as cy, v218 as cz, v4 as d, v247 as d0, v248 as d1, v249 as d2, v250 as d3, v251 as d4, v252 as d5, v253 as d6, v254 as d7, v255 as d8, v256 as d9, v257 as da, v258 as db, v259 as dc, v260 as dd, v261 as de, v262 as df, v263 as dg, v264 as dh, v265 as di, v266 as dj, v267 as dk, v268 as dl, v269 as dm, v270 as dn, v271 as dp, v272 as dq, v5 as e, v6 as f, v7 as g, v8 as h, v9 as i, v10 as j, v11 as k, v12 as l, v13 as m, v14 as n, v15 as o, v16 as p, v17 as q, v18 as r, v19 as s, v20 as t, v21 as u, v22 as v, v23 as w, v24 as x, v25 as y, v26 as z }; diff --git a/test/chunking-form/samples/sanitize-internal-exports/_expected/es/generated-chunk2.js b/test/chunking-form/samples/sanitize-internal-exports/_expected/es/generated-chunk2.js new file mode 100644 index 00000000000..185bfdfc651 --- /dev/null +++ b/test/chunking-form/samples/sanitize-internal-exports/_expected/es/generated-chunk2.js @@ -0,0 +1,5 @@ +import { a as v1 } from './generated-chunk.js'; + +var lazy = () => v1; + +export default lazy; diff --git a/test/chunking-form/samples/sanitize-internal-exports/_expected/es/main.js b/test/chunking-form/samples/sanitize-internal-exports/_expected/es/main.js new file mode 100644 index 00000000000..9820c00783c --- /dev/null +++ b/test/chunking-form/samples/sanitize-internal-exports/_expected/es/main.js @@ -0,0 +1,5 @@ +export { a as v1, j as v10, aJ as v100, aK as v101, aL as v102, aM as v103, aN as v104, aO as v105, aP as v106, aQ as v107, aR as v108, aS as v109, k as v11, aT as v110, aU as v111, aV as v112, aW as v113, aX as v114, aY as v115, aZ as v116, a_ as v117, a$ as v118, b0 as v119, l as v12, b1 as v120, b2 as v121, b3 as v122, b4 as v123, b5 as v124, b6 as v125, b7 as v126, b8 as v127, b9 as v128, ba as v129, m as v13, bb as v130, bc as v131, bd as v132, be as v133, bf as v134, bg as v135, bh as v136, bi as v137, bj as v138, bk as v139, n as v14, bl as v140, bm as v141, bn as v142, bo as v143, bp as v144, bq as v145, br as v146, bs as v147, bt as v148, bu as v149, o as v15, bv as v150, bw as v151, bx as v152, by as v153, bz as v154, bA as v155, bB as v156, bC as v157, bD as v158, bE as v159, p as v16, bF as v160, bG as v161, bH as v162, bI as v163, bJ as v164, bK as v165, bL as v166, bM as v167, bN as v168, bO as v169, q as v17, bP as v170, bQ as v171, bR as v172, bS as v173, bT as v174, bU as v175, bV as v176, bW as v177, bX as v178, bY as v179, r as v18, bZ as v180, b_ as v181, b$ as v182, c0 as v183, c1 as v184, c2 as v185, c3 as v186, c4 as v187, c5 as v188, c6 as v189, s as v19, c7 as v190, c8 as v191, c9 as v192, ca as v193, cb as v194, cc as v195, cd as v196, ce as v197, cf as v198, cg as v199, b as v2, t as v20, ch as v200, ci as v201, cj as v202, ck as v203, cl as v204, cm as v205, cn as v206, co as v207, cp as v208, cq as v209, u as v21, cr as v210, cs as v211, ct as v212, cu as v213, cv as v214, cw as v215, cx as v216, cy as v217, cz as v218, cA as v219, v as v22, cB as v220, cC as v221, cD as v222, cE as v223, cF as v224, cG as v225, cH as v226, cI as v227, cJ as v228, cK as v229, w as v23, cL as v230, cM as v231, cN as v232, cO as v233, cP as v234, cQ as v235, cR as v236, cS as v237, cT as v238, cU as v239, x as v24, cV as v240, cW as v241, cX as v242, cY as v243, cZ as v244, c_ as v245, c$ as v246, d0 as v247, d1 as v248, d2 as v249, y as v25, d3 as v250, d4 as v251, d5 as v252, d6 as v253, d7 as v254, d8 as v255, d9 as v256, da as v257, db as v258, dc as v259, z as v26, dd as v260, de as v261, df as v262, dg as v263, dh as v264, di as v265, dj as v266, dk as v267, dl as v268, dm as v269, A as v27, dn as v270, dp as v271, dq as v272, B as v28, C as v29, c as v3, D as v30, E as v31, F as v32, G as v33, H as v34, I as v35, J as v36, K as v37, L as v38, M as v39, d as v4, N as v40, O as v41, P as v42, Q as v43, R as v44, S as v45, T as v46, U as v47, V as v48, W as v49, e as v5, X as v50, Y as v51, Z as v52, _ as v53, $ as v54, a0 as v55, a1 as v56, a2 as v57, a3 as v58, a4 as v59, f as v6, a5 as v60, a6 as v61, a7 as v62, a8 as v63, a9 as v64, aa as v65, ab as v66, ac as v67, ad as v68, ae as v69, g as v7, af as v70, ag as v71, ah as v72, ai as v73, aj as v74, ak as v75, al as v76, am as v77, an as v78, ao as v79, h as v8, ap as v80, aq as v81, ar as v82, as as v83, at as v84, au as v85, av as v86, aw as v87, ax as v88, ay as v89, i as v9, az as v90, aA as v91, aB as v92, aC as v93, aD as v94, aE as v95, aF as v96, aG as v97, aH as v98, aI as v99 } from './generated-chunk.js'; + +const lazy = import('./generated-chunk2.js'); + +export { lazy }; diff --git a/test/chunking-form/samples/sanitize-internal-exports/_expected/system/generated-chunk.js b/test/chunking-form/samples/sanitize-internal-exports/_expected/system/generated-chunk.js new file mode 100644 index 00000000000..888e64bbbc0 --- /dev/null +++ b/test/chunking-form/samples/sanitize-internal-exports/_expected/system/generated-chunk.js @@ -0,0 +1,556 @@ +System.register([], function (exports, module) { + 'use strict'; + return { + execute: function () { + + exports({ + $: void 0, + A: void 0, + B: void 0, + C: void 0, + D: void 0, + E: void 0, + F: void 0, + G: void 0, + H: void 0, + I: void 0, + J: void 0, + K: void 0, + L: void 0, + M: void 0, + N: void 0, + O: void 0, + P: void 0, + Q: void 0, + R: void 0, + S: void 0, + T: void 0, + U: void 0, + V: void 0, + W: void 0, + X: void 0, + Y: void 0, + Z: void 0, + _: void 0, + a: void 0, + a$: void 0, + a0: void 0, + a1: void 0, + a2: void 0, + a3: void 0, + a4: void 0, + a5: void 0, + a6: void 0, + a7: void 0, + a8: void 0, + a9: void 0, + aA: void 0, + aB: void 0, + aC: void 0, + aD: void 0, + aE: void 0, + aF: void 0, + aG: void 0, + aH: void 0, + aI: void 0, + aJ: void 0, + aK: void 0, + aL: void 0, + aM: void 0, + aN: void 0, + aO: void 0, + aP: void 0, + aQ: void 0, + aR: void 0, + aS: void 0, + aT: void 0, + aU: void 0, + aV: void 0, + aW: void 0, + aX: void 0, + aY: void 0, + aZ: void 0, + a_: void 0, + aa: void 0, + ab: void 0, + ac: void 0, + ad: void 0, + ae: void 0, + af: void 0, + ag: void 0, + ah: void 0, + ai: void 0, + aj: void 0, + ak: void 0, + al: void 0, + am: void 0, + an: void 0, + ao: void 0, + ap: void 0, + aq: void 0, + ar: void 0, + as: void 0, + at: void 0, + au: void 0, + av: void 0, + aw: void 0, + ax: void 0, + ay: void 0, + az: void 0, + b: void 0, + b$: void 0, + b0: void 0, + b1: void 0, + b2: void 0, + b3: void 0, + b4: void 0, + b5: void 0, + b6: void 0, + b7: void 0, + b8: void 0, + b9: void 0, + bA: void 0, + bB: void 0, + bC: void 0, + bD: void 0, + bE: void 0, + bF: void 0, + bG: void 0, + bH: void 0, + bI: void 0, + bJ: void 0, + bK: void 0, + bL: void 0, + bM: void 0, + bN: void 0, + bO: void 0, + bP: void 0, + bQ: void 0, + bR: void 0, + bS: void 0, + bT: void 0, + bU: void 0, + bV: void 0, + bW: void 0, + bX: void 0, + bY: void 0, + bZ: void 0, + b_: void 0, + ba: void 0, + bb: void 0, + bc: void 0, + bd: void 0, + be: void 0, + bf: void 0, + bg: void 0, + bh: void 0, + bi: void 0, + bj: void 0, + bk: void 0, + bl: void 0, + bm: void 0, + bn: void 0, + bo: void 0, + bp: void 0, + bq: void 0, + br: void 0, + bs: void 0, + bt: void 0, + bu: void 0, + bv: void 0, + bw: void 0, + bx: void 0, + by: void 0, + bz: void 0, + c: void 0, + c$: void 0, + c0: void 0, + c1: void 0, + c2: void 0, + c3: void 0, + c4: void 0, + c5: void 0, + c6: void 0, + c7: void 0, + c8: void 0, + c9: void 0, + cA: void 0, + cB: void 0, + cC: void 0, + cD: void 0, + cE: void 0, + cF: void 0, + cG: void 0, + cH: void 0, + cI: void 0, + cJ: void 0, + cK: void 0, + cL: void 0, + cM: void 0, + cN: void 0, + cO: void 0, + cP: void 0, + cQ: void 0, + cR: void 0, + cS: void 0, + cT: void 0, + cU: void 0, + cV: void 0, + cW: void 0, + cX: void 0, + cY: void 0, + cZ: void 0, + c_: void 0, + ca: void 0, + cb: void 0, + cc: void 0, + cd: void 0, + ce: void 0, + cf: void 0, + cg: void 0, + ch: void 0, + ci: void 0, + cj: void 0, + ck: void 0, + cl: void 0, + cm: void 0, + cn: void 0, + co: void 0, + cp: void 0, + cq: void 0, + cr: void 0, + cs: void 0, + ct: void 0, + cu: void 0, + cv: void 0, + cw: void 0, + cx: void 0, + cy: void 0, + cz: void 0, + d: void 0, + d0: void 0, + d1: void 0, + d2: void 0, + d3: void 0, + d4: void 0, + d5: void 0, + d6: void 0, + d7: void 0, + d8: void 0, + d9: void 0, + da: void 0, + db: void 0, + dc: void 0, + dd: void 0, + de: void 0, + df: void 0, + dg: void 0, + dh: void 0, + di: void 0, + dj: void 0, + dk: void 0, + dl: void 0, + dm: void 0, + dn: void 0, + dp: void 0, + dq: void 0, + e: void 0, + f: void 0, + g: void 0, + h: void 0, + i: void 0, + j: void 0, + k: void 0, + l: void 0, + m: void 0, + n: void 0, + o: void 0, + p: void 0, + q: void 0, + r: void 0, + s: void 0, + t: void 0, + u: void 0, + v: void 0, + w: void 0, + x: void 0, + y: void 0, + z: void 0 + }); + + var v1, + v2, + v3, + v4, + v5, + v6, + v7, + v8, + v9, + v10, + v11, + v12, + v13, + v14, + v15, + v16, + v17, + v18, + v19, + v20, + v21, + v22, + v23, + v24, + v25, + v26, + v27, + v28, + v29, + v30, + v31, + v32, + v33, + v34, + v35, + v36, + v37, + v38, + v39, + v40, + v41, + v42, + v43, + v44, + v45, + v46, + v47, + v48, + v49, + v50, + v51, + v52, + v53, + v54, + v55, + v56, + v57, + v58, + v59, + v60, + v61, + v62, + v63, + v64, + v65, + v66, + v67, + v68, + v69, + v70, + v71, + v72, + v73, + v74, + v75, + v76, + v77, + v78, + v79, + v80, + v81, + v82, + v83, + v84, + v85, + v86, + v87, + v88, + v89, + v90, + v91, + v92, + v93, + v94, + v95, + v96, + v97, + v98, + v99, + v100, + v101, + v102, + v103, + v104, + v105, + v106, + v107, + v108, + v109, + v110, + v111, + v112, + v113, + v114, + v115, + v116, + v117, + v118, + v119, + v120, + v121, + v122, + v123, + v124, + v125, + v126, + v127, + v128, + v129, + v130, + v131, + v132, + v133, + v134, + v135, + v136, + v137, + v138, + v139, + v140, + v141, + v142, + v143, + v144, + v145, + v146, + v147, + v148, + v149, + v150, + v151, + v152, + v153, + v154, + v155, + v156, + v157, + v158, + v159, + v160, + v161, + v162, + v163, + v164, + v165, + v166, + v167, + v168, + v169, + v170, + v171, + v172, + v173, + v174, + v175, + v176, + v177, + v178, + v179, + v180, + v181, + v182, + v183, + v184, + v185, + v186, + v187, + v188, + v189, + v190, + v191, + v192, + v193, + v194, + v195, + v196, + v197, + v198, + v199, + v200, + v201, + v202, + v203, + v204, + v205, + v206, + v207, + v208, + v209, + v210, + v211, + v212, + v213, + v214, + v215, + v216, + v217, + v218, + v219, + v220, + v221, + v222, + v223, + v224, + v225, + v226, + v227, + v228, + v229, + v230, + v231, + v232, + v233, + v234, + v235, + v236, + v237, + v238, + v239, + v240, + v241, + v242, + v243, + v244, + v245, + v246, + v247, + v248, + v249, + v250, + v251, + v252, + v253, + v254, + v255, + v256, + v257, + v258, + v259, + v260, + v261, + v262, + v263, + v264, + v265, + v266, + v267, + v268, + v269, + v270, + v271, + v272; + + } + }; +}); diff --git a/test/chunking-form/samples/sanitize-internal-exports/_expected/system/generated-chunk2.js b/test/chunking-form/samples/sanitize-internal-exports/_expected/system/generated-chunk2.js new file mode 100644 index 00000000000..c800131b669 --- /dev/null +++ b/test/chunking-form/samples/sanitize-internal-exports/_expected/system/generated-chunk2.js @@ -0,0 +1,14 @@ +System.register(['./generated-chunk.js'], function (exports, module) { + 'use strict'; + var v1; + return { + setters: [function (module) { + v1 = module.a; + }], + execute: function () { + + var lazy = exports('default', () => v1); + + } + }; +}); diff --git a/test/chunking-form/samples/sanitize-internal-exports/_expected/system/main.js b/test/chunking-form/samples/sanitize-internal-exports/_expected/system/main.js new file mode 100644 index 00000000000..ffe78d9f1af --- /dev/null +++ b/test/chunking-form/samples/sanitize-internal-exports/_expected/system/main.js @@ -0,0 +1,286 @@ +System.register(['./generated-chunk.js'], function (exports, module) { + 'use strict'; + return { + setters: [function (module) { + var _setter = {}; + _setter.v1 = module.a; + _setter.v10 = module.j; + _setter.v100 = module.aJ; + _setter.v101 = module.aK; + _setter.v102 = module.aL; + _setter.v103 = module.aM; + _setter.v104 = module.aN; + _setter.v105 = module.aO; + _setter.v106 = module.aP; + _setter.v107 = module.aQ; + _setter.v108 = module.aR; + _setter.v109 = module.aS; + _setter.v11 = module.k; + _setter.v110 = module.aT; + _setter.v111 = module.aU; + _setter.v112 = module.aV; + _setter.v113 = module.aW; + _setter.v114 = module.aX; + _setter.v115 = module.aY; + _setter.v116 = module.aZ; + _setter.v117 = module.a_; + _setter.v118 = module.a$; + _setter.v119 = module.b0; + _setter.v12 = module.l; + _setter.v120 = module.b1; + _setter.v121 = module.b2; + _setter.v122 = module.b3; + _setter.v123 = module.b4; + _setter.v124 = module.b5; + _setter.v125 = module.b6; + _setter.v126 = module.b7; + _setter.v127 = module.b8; + _setter.v128 = module.b9; + _setter.v129 = module.ba; + _setter.v13 = module.m; + _setter.v130 = module.bb; + _setter.v131 = module.bc; + _setter.v132 = module.bd; + _setter.v133 = module.be; + _setter.v134 = module.bf; + _setter.v135 = module.bg; + _setter.v136 = module.bh; + _setter.v137 = module.bi; + _setter.v138 = module.bj; + _setter.v139 = module.bk; + _setter.v14 = module.n; + _setter.v140 = module.bl; + _setter.v141 = module.bm; + _setter.v142 = module.bn; + _setter.v143 = module.bo; + _setter.v144 = module.bp; + _setter.v145 = module.bq; + _setter.v146 = module.br; + _setter.v147 = module.bs; + _setter.v148 = module.bt; + _setter.v149 = module.bu; + _setter.v15 = module.o; + _setter.v150 = module.bv; + _setter.v151 = module.bw; + _setter.v152 = module.bx; + _setter.v153 = module.by; + _setter.v154 = module.bz; + _setter.v155 = module.bA; + _setter.v156 = module.bB; + _setter.v157 = module.bC; + _setter.v158 = module.bD; + _setter.v159 = module.bE; + _setter.v16 = module.p; + _setter.v160 = module.bF; + _setter.v161 = module.bG; + _setter.v162 = module.bH; + _setter.v163 = module.bI; + _setter.v164 = module.bJ; + _setter.v165 = module.bK; + _setter.v166 = module.bL; + _setter.v167 = module.bM; + _setter.v168 = module.bN; + _setter.v169 = module.bO; + _setter.v17 = module.q; + _setter.v170 = module.bP; + _setter.v171 = module.bQ; + _setter.v172 = module.bR; + _setter.v173 = module.bS; + _setter.v174 = module.bT; + _setter.v175 = module.bU; + _setter.v176 = module.bV; + _setter.v177 = module.bW; + _setter.v178 = module.bX; + _setter.v179 = module.bY; + _setter.v18 = module.r; + _setter.v180 = module.bZ; + _setter.v181 = module.b_; + _setter.v182 = module.b$; + _setter.v183 = module.c0; + _setter.v184 = module.c1; + _setter.v185 = module.c2; + _setter.v186 = module.c3; + _setter.v187 = module.c4; + _setter.v188 = module.c5; + _setter.v189 = module.c6; + _setter.v19 = module.s; + _setter.v190 = module.c7; + _setter.v191 = module.c8; + _setter.v192 = module.c9; + _setter.v193 = module.ca; + _setter.v194 = module.cb; + _setter.v195 = module.cc; + _setter.v196 = module.cd; + _setter.v197 = module.ce; + _setter.v198 = module.cf; + _setter.v199 = module.cg; + _setter.v2 = module.b; + _setter.v20 = module.t; + _setter.v200 = module.ch; + _setter.v201 = module.ci; + _setter.v202 = module.cj; + _setter.v203 = module.ck; + _setter.v204 = module.cl; + _setter.v205 = module.cm; + _setter.v206 = module.cn; + _setter.v207 = module.co; + _setter.v208 = module.cp; + _setter.v209 = module.cq; + _setter.v21 = module.u; + _setter.v210 = module.cr; + _setter.v211 = module.cs; + _setter.v212 = module.ct; + _setter.v213 = module.cu; + _setter.v214 = module.cv; + _setter.v215 = module.cw; + _setter.v216 = module.cx; + _setter.v217 = module.cy; + _setter.v218 = module.cz; + _setter.v219 = module.cA; + _setter.v22 = module.v; + _setter.v220 = module.cB; + _setter.v221 = module.cC; + _setter.v222 = module.cD; + _setter.v223 = module.cE; + _setter.v224 = module.cF; + _setter.v225 = module.cG; + _setter.v226 = module.cH; + _setter.v227 = module.cI; + _setter.v228 = module.cJ; + _setter.v229 = module.cK; + _setter.v23 = module.w; + _setter.v230 = module.cL; + _setter.v231 = module.cM; + _setter.v232 = module.cN; + _setter.v233 = module.cO; + _setter.v234 = module.cP; + _setter.v235 = module.cQ; + _setter.v236 = module.cR; + _setter.v237 = module.cS; + _setter.v238 = module.cT; + _setter.v239 = module.cU; + _setter.v24 = module.x; + _setter.v240 = module.cV; + _setter.v241 = module.cW; + _setter.v242 = module.cX; + _setter.v243 = module.cY; + _setter.v244 = module.cZ; + _setter.v245 = module.c_; + _setter.v246 = module.c$; + _setter.v247 = module.d0; + _setter.v248 = module.d1; + _setter.v249 = module.d2; + _setter.v25 = module.y; + _setter.v250 = module.d3; + _setter.v251 = module.d4; + _setter.v252 = module.d5; + _setter.v253 = module.d6; + _setter.v254 = module.d7; + _setter.v255 = module.d8; + _setter.v256 = module.d9; + _setter.v257 = module.da; + _setter.v258 = module.db; + _setter.v259 = module.dc; + _setter.v26 = module.z; + _setter.v260 = module.dd; + _setter.v261 = module.de; + _setter.v262 = module.df; + _setter.v263 = module.dg; + _setter.v264 = module.dh; + _setter.v265 = module.di; + _setter.v266 = module.dj; + _setter.v267 = module.dk; + _setter.v268 = module.dl; + _setter.v269 = module.dm; + _setter.v27 = module.A; + _setter.v270 = module.dn; + _setter.v271 = module.dp; + _setter.v272 = module.dq; + _setter.v28 = module.B; + _setter.v29 = module.C; + _setter.v3 = module.c; + _setter.v30 = module.D; + _setter.v31 = module.E; + _setter.v32 = module.F; + _setter.v33 = module.G; + _setter.v34 = module.H; + _setter.v35 = module.I; + _setter.v36 = module.J; + _setter.v37 = module.K; + _setter.v38 = module.L; + _setter.v39 = module.M; + _setter.v4 = module.d; + _setter.v40 = module.N; + _setter.v41 = module.O; + _setter.v42 = module.P; + _setter.v43 = module.Q; + _setter.v44 = module.R; + _setter.v45 = module.S; + _setter.v46 = module.T; + _setter.v47 = module.U; + _setter.v48 = module.V; + _setter.v49 = module.W; + _setter.v5 = module.e; + _setter.v50 = module.X; + _setter.v51 = module.Y; + _setter.v52 = module.Z; + _setter.v53 = module._; + _setter.v54 = module.$; + _setter.v55 = module.a0; + _setter.v56 = module.a1; + _setter.v57 = module.a2; + _setter.v58 = module.a3; + _setter.v59 = module.a4; + _setter.v6 = module.f; + _setter.v60 = module.a5; + _setter.v61 = module.a6; + _setter.v62 = module.a7; + _setter.v63 = module.a8; + _setter.v64 = module.a9; + _setter.v65 = module.aa; + _setter.v66 = module.ab; + _setter.v67 = module.ac; + _setter.v68 = module.ad; + _setter.v69 = module.ae; + _setter.v7 = module.g; + _setter.v70 = module.af; + _setter.v71 = module.ag; + _setter.v72 = module.ah; + _setter.v73 = module.ai; + _setter.v74 = module.aj; + _setter.v75 = module.ak; + _setter.v76 = module.al; + _setter.v77 = module.am; + _setter.v78 = module.an; + _setter.v79 = module.ao; + _setter.v8 = module.h; + _setter.v80 = module.ap; + _setter.v81 = module.aq; + _setter.v82 = module.ar; + _setter.v83 = module.as; + _setter.v84 = module.at; + _setter.v85 = module.au; + _setter.v86 = module.av; + _setter.v87 = module.aw; + _setter.v88 = module.ax; + _setter.v89 = module.ay; + _setter.v9 = module.i; + _setter.v90 = module.az; + _setter.v91 = module.aA; + _setter.v92 = module.aB; + _setter.v93 = module.aC; + _setter.v94 = module.aD; + _setter.v95 = module.aE; + _setter.v96 = module.aF; + _setter.v97 = module.aG; + _setter.v98 = module.aH; + _setter.v99 = module.aI; + exports(_setter); + }], + execute: function () { + + const lazy = exports('lazy', module.import('./generated-chunk2.js')); + + } + }; +}); diff --git a/test/chunking-form/samples/sanitize-internal-exports/constants.js b/test/chunking-form/samples/sanitize-internal-exports/constants.js new file mode 100644 index 00000000000..fb0b85c7317 --- /dev/null +++ b/test/chunking-form/samples/sanitize-internal-exports/constants.js @@ -0,0 +1,272 @@ +export var v1, + v2, + v3, + v4, + v5, + v6, + v7, + v8, + v9, + v10, + v11, + v12, + v13, + v14, + v15, + v16, + v17, + v18, + v19, + v20, + v21, + v22, + v23, + v24, + v25, + v26, + v27, + v28, + v29, + v30, + v31, + v32, + v33, + v34, + v35, + v36, + v37, + v38, + v39, + v40, + v41, + v42, + v43, + v44, + v45, + v46, + v47, + v48, + v49, + v50, + v51, + v52, + v53, + v54, + v55, + v56, + v57, + v58, + v59, + v60, + v61, + v62, + v63, + v64, + v65, + v66, + v67, + v68, + v69, + v70, + v71, + v72, + v73, + v74, + v75, + v76, + v77, + v78, + v79, + v80, + v81, + v82, + v83, + v84, + v85, + v86, + v87, + v88, + v89, + v90, + v91, + v92, + v93, + v94, + v95, + v96, + v97, + v98, + v99, + v100, + v101, + v102, + v103, + v104, + v105, + v106, + v107, + v108, + v109, + v110, + v111, + v112, + v113, + v114, + v115, + v116, + v117, + v118, + v119, + v120, + v121, + v122, + v123, + v124, + v125, + v126, + v127, + v128, + v129, + v130, + v131, + v132, + v133, + v134, + v135, + v136, + v137, + v138, + v139, + v140, + v141, + v142, + v143, + v144, + v145, + v146, + v147, + v148, + v149, + v150, + v151, + v152, + v153, + v154, + v155, + v156, + v157, + v158, + v159, + v160, + v161, + v162, + v163, + v164, + v165, + v166, + v167, + v168, + v169, + v170, + v171, + v172, + v173, + v174, + v175, + v176, + v177, + v178, + v179, + v180, + v181, + v182, + v183, + v184, + v185, + v186, + v187, + v188, + v189, + v190, + v191, + v192, + v193, + v194, + v195, + v196, + v197, + v198, + v199, + v200, + v201, + v202, + v203, + v204, + v205, + v206, + v207, + v208, + v209, + v210, + v211, + v212, + v213, + v214, + v215, + v216, + v217, + v218, + v219, + v220, + v221, + v222, + v223, + v224, + v225, + v226, + v227, + v228, + v229, + v230, + v231, + v232, + v233, + v234, + v235, + v236, + v237, + v238, + v239, + v240, + v241, + v242, + v243, + v244, + v245, + v246, + v247, + v248, + v249, + v250, + v251, + v252, + v253, + v254, + v255, + v256, + v257, + v258, + v259, + v260, + v261, + v262, + v263, + v264, + v265, + v266, + v267, + v268, + v269, + v270, + v271, + v272; diff --git a/test/chunking-form/samples/sanitize-internal-exports/lazy.js b/test/chunking-form/samples/sanitize-internal-exports/lazy.js new file mode 100644 index 00000000000..cbd76ad50bc --- /dev/null +++ b/test/chunking-form/samples/sanitize-internal-exports/lazy.js @@ -0,0 +1,2 @@ +import { v1 } from './constants'; +export default () => v1; diff --git a/test/chunking-form/samples/sanitize-internal-exports/main.js b/test/chunking-form/samples/sanitize-internal-exports/main.js new file mode 100644 index 00000000000..36625ac3d02 --- /dev/null +++ b/test/chunking-form/samples/sanitize-internal-exports/main.js @@ -0,0 +1,2 @@ +export * from './constants'; +export const lazy = import('./lazy');