@atlaspack/transformer-js 3.3.8-noselfbuild-63bde801d.0 → 3.3.8-typescript-e769947a5.0
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/lib/JSTransformer.js +0 -5
- package/package.json +8 -8
- package/src/JSTransformer.js +0 -5
package/lib/JSTransformer.js
CHANGED
|
@@ -344,7 +344,6 @@ var _default = exports.default = new (_plugin().Transformer)({
|
|
|
344
344
|
shebang,
|
|
345
345
|
hoist_result,
|
|
346
346
|
symbol_result,
|
|
347
|
-
is_empty_or_empty_export,
|
|
348
347
|
needs_esm_helpers,
|
|
349
348
|
diagnostics,
|
|
350
349
|
used_env,
|
|
@@ -386,7 +385,6 @@ var _default = exports.default = new (_plugin().Transformer)({
|
|
|
386
385
|
inline_constants: config.inlineConstants,
|
|
387
386
|
conditional_bundling: options.featureFlags.conditionalBundlingApi,
|
|
388
387
|
hmr_improvements: options.featureFlags.hmrImprovements,
|
|
389
|
-
computed_properties_fix: options.featureFlags.unusedComputedPropertyFix,
|
|
390
388
|
magic_comments: Boolean(config === null || config === void 0 ? void 0 : config.magicComments),
|
|
391
389
|
callMacro: asset.isSource ? async (err, src, exportName, args, loc) => {
|
|
392
390
|
let mod;
|
|
@@ -824,9 +822,6 @@ var _default = exports.default = new (_plugin().Transformer)({
|
|
|
824
822
|
// (and the asset has side effects), or the asset is wrapped.
|
|
825
823
|
// This allows accessing symbols that don't exist without errors in symbol propagation.
|
|
826
824
|
if (hoist_result.has_cjs_exports || !hoist_result.is_esm && asset.sideEffects && deps.size === 0 && Object.keys(hoist_result.exported_symbols).length === 0 || hoist_result.should_wrap && !asset.symbols.hasExportSymbol('*')) {
|
|
827
|
-
if (is_empty_or_empty_export) {
|
|
828
|
-
asset.meta.emptyFileStarReexport = true;
|
|
829
|
-
}
|
|
830
825
|
asset.symbols.set('*', `$${asset.id}$exports`);
|
|
831
826
|
}
|
|
832
827
|
asset.meta.hasCJSExports = hoist_result.has_cjs_exports;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/transformer-js",
|
|
3
|
-
"version": "3.3.8-
|
|
3
|
+
"version": "3.3.8-typescript-e769947a5.0",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
"src"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@atlaspack/diagnostic": "2.14.2-
|
|
26
|
-
"@atlaspack/feature-flags": "2.18.5-
|
|
27
|
-
"@atlaspack/plugin": "2.14.18-
|
|
28
|
-
"@atlaspack/rust": "3.4.1-
|
|
29
|
-
"@atlaspack/utils": "2.16.2-
|
|
30
|
-
"@atlaspack/workers": "2.14.18-
|
|
25
|
+
"@atlaspack/diagnostic": "2.14.2-typescript-e769947a5.0",
|
|
26
|
+
"@atlaspack/feature-flags": "2.18.5-typescript-e769947a5.0",
|
|
27
|
+
"@atlaspack/plugin": "2.14.18-typescript-e769947a5.0",
|
|
28
|
+
"@atlaspack/rust": "3.4.1-typescript-e769947a5.0",
|
|
29
|
+
"@atlaspack/utils": "2.16.2-typescript-e769947a5.0",
|
|
30
|
+
"@atlaspack/workers": "2.14.18-typescript-e769947a5.0",
|
|
31
31
|
"@parcel/source-map": "^2.1.1",
|
|
32
32
|
"@swc/helpers": "^0.5.15",
|
|
33
33
|
"browserslist": "^4.6.6",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"@atlaspack/core": "^2.13.1"
|
|
40
40
|
},
|
|
41
41
|
"type": "commonjs",
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "e769947a5b0c22d9477211ac1ce6614e6bf9def3"
|
|
43
43
|
}
|
package/src/JSTransformer.js
CHANGED
|
@@ -428,7 +428,6 @@ export default (new Transformer({
|
|
|
428
428
|
shebang,
|
|
429
429
|
hoist_result,
|
|
430
430
|
symbol_result,
|
|
431
|
-
is_empty_or_empty_export,
|
|
432
431
|
needs_esm_helpers,
|
|
433
432
|
diagnostics,
|
|
434
433
|
used_env,
|
|
@@ -477,7 +476,6 @@ export default (new Transformer({
|
|
|
477
476
|
inline_constants: config.inlineConstants,
|
|
478
477
|
conditional_bundling: options.featureFlags.conditionalBundlingApi,
|
|
479
478
|
hmr_improvements: options.featureFlags.hmrImprovements,
|
|
480
|
-
computed_properties_fix: options.featureFlags.unusedComputedPropertyFix,
|
|
481
479
|
magic_comments: Boolean(config?.magicComments),
|
|
482
480
|
callMacro: asset.isSource
|
|
483
481
|
? async (err, src, exportName, args, loc) => {
|
|
@@ -1006,9 +1004,6 @@ export default (new Transformer({
|
|
|
1006
1004
|
Object.keys(hoist_result.exported_symbols).length === 0) ||
|
|
1007
1005
|
(hoist_result.should_wrap && !asset.symbols.hasExportSymbol('*'))
|
|
1008
1006
|
) {
|
|
1009
|
-
if (is_empty_or_empty_export) {
|
|
1010
|
-
asset.meta.emptyFileStarReexport = true;
|
|
1011
|
-
}
|
|
1012
1007
|
asset.symbols.set('*', `$${asset.id}$exports`);
|
|
1013
1008
|
}
|
|
1014
1009
|
|