@atlaspack/optimizer-inline-requires 2.14.5-canary.93 → 2.14.5-canary.95

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.
@@ -14,13 +14,6 @@ function _rust() {
14
14
  };
15
15
  return data;
16
16
  }
17
- function _featureFlags() {
18
- const data = require("@atlaspack/feature-flags");
19
- _featureFlags = function () {
20
- return data;
21
- };
22
- return data;
23
- }
24
17
  function _nullthrows() {
25
18
  const data = _interopRequireDefault(require("nullthrows"));
26
19
  _nullthrows = function () {
@@ -84,11 +77,7 @@ module.exports = new (_plugin().Optimizer)({
84
77
  }
85
78
  try {
86
79
  let sourceMap = null;
87
- const result = (0, _featureFlags().getFeatureFlag)('inlineRequiresMultiThreading') ? await (0, _rust().runInlineRequiresOptimizerAsync)({
88
- code: contents.toString(),
89
- sourceMaps: !!bundle.env.sourceMap,
90
- ignoreModuleIds: Array.from(bundleConfig.assetPublicIdsWithSideEffects)
91
- }) : (0, _rust().runInlineRequiresOptimizer)({
80
+ const result = await (0, _rust().runInlineRequiresOptimizerAsync)({
92
81
  code: contents.toString(),
93
82
  sourceMaps: !!bundle.env.sourceMap,
94
83
  ignoreModuleIds: Array.from(bundleConfig.assetPublicIdsWithSideEffects)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/optimizer-inline-requires",
3
- "version": "2.14.5-canary.93+4d7abde0a",
3
+ "version": "2.14.5-canary.95+74fd94236",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -15,14 +15,14 @@
15
15
  "node": ">= 14.0.0"
16
16
  },
17
17
  "dependencies": {
18
- "@atlaspack/feature-flags": "2.14.1-canary.161+4d7abde0a",
19
- "@atlaspack/plugin": "2.14.5-canary.93+4d7abde0a",
20
- "@atlaspack/rust": "3.2.1-canary.93+4d7abde0a",
21
- "@atlaspack/types": "2.14.5-canary.93+4d7abde0a",
18
+ "@atlaspack/feature-flags": "2.14.1-canary.163+74fd94236",
19
+ "@atlaspack/plugin": "2.14.5-canary.95+74fd94236",
20
+ "@atlaspack/rust": "3.2.1-canary.95+74fd94236",
21
+ "@atlaspack/types": "2.14.5-canary.95+74fd94236",
22
22
  "@parcel/source-map": "^2.1.1",
23
23
  "@swc/core": "^1.10.0",
24
24
  "nullthrows": "^1.1.1"
25
25
  },
26
26
  "type": "commonjs",
27
- "gitHead": "4d7abde0a6faa148bcf330b08d820f171f853b76"
27
+ "gitHead": "74fd94236ac697207082c4b755b079e56f5564fb"
28
28
  }
@@ -1,10 +1,6 @@
1
1
  // @flow strict-local
2
2
  import {Optimizer} from '@atlaspack/plugin';
3
- import {
4
- runInlineRequiresOptimizer,
5
- runInlineRequiresOptimizerAsync,
6
- } from '@atlaspack/rust';
7
- import {getFeatureFlag} from '@atlaspack/feature-flags';
3
+ import {runInlineRequiresOptimizerAsync} from '@atlaspack/rust';
8
4
  import nullthrows from 'nullthrows';
9
5
  import SourceMap from '@parcel/source-map';
10
6
 
@@ -60,21 +56,11 @@ module.exports = new Optimizer<empty, BundleConfig>({
60
56
 
61
57
  try {
62
58
  let sourceMap = null;
63
- const result = getFeatureFlag('inlineRequiresMultiThreading')
64
- ? await runInlineRequiresOptimizerAsync({
65
- code: contents.toString(),
66
- sourceMaps: !!bundle.env.sourceMap,
67
- ignoreModuleIds: Array.from(
68
- bundleConfig.assetPublicIdsWithSideEffects,
69
- ),
70
- })
71
- : runInlineRequiresOptimizer({
72
- code: contents.toString(),
73
- sourceMaps: !!bundle.env.sourceMap,
74
- ignoreModuleIds: Array.from(
75
- bundleConfig.assetPublicIdsWithSideEffects,
76
- ),
77
- });
59
+ const result = await runInlineRequiresOptimizerAsync({
60
+ code: contents.toString(),
61
+ sourceMaps: !!bundle.env.sourceMap,
62
+ ignoreModuleIds: Array.from(bundleConfig.assetPublicIdsWithSideEffects),
63
+ });
78
64
 
79
65
  const sourceMapResult = result.sourceMap;
80
66
  if (sourceMapResult != null) {