@atlaspack/core 2.24.1 → 2.24.2

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.
Files changed (90) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/AssetGraph.js +591 -0
  3. package/dist/Atlaspack.js +656 -0
  4. package/dist/AtlaspackConfig.js +324 -0
  5. package/dist/AtlaspackConfig.schema.js +108 -0
  6. package/dist/BundleGraph.js +1628 -0
  7. package/dist/CommittedAsset.js +142 -0
  8. package/dist/Dependency.js +125 -0
  9. package/dist/Environment.js +132 -0
  10. package/dist/EnvironmentManager.js +108 -0
  11. package/dist/IdentifierRegistry.js +38 -0
  12. package/dist/InternalConfig.js +37 -0
  13. package/dist/PackagerRunner.js +531 -0
  14. package/dist/ReporterRunner.js +151 -0
  15. package/dist/RequestTracker.js +1368 -0
  16. package/dist/SymbolPropagation.js +617 -0
  17. package/dist/TargetDescriptor.schema.js +143 -0
  18. package/dist/Transformation.js +487 -0
  19. package/dist/UncommittedAsset.js +315 -0
  20. package/dist/Validation.js +196 -0
  21. package/dist/applyRuntimes.js +305 -0
  22. package/dist/assetUtils.js +168 -0
  23. package/dist/atlaspack-v3/AtlaspackV3.js +70 -0
  24. package/dist/atlaspack-v3/NapiWorkerPool.js +57 -0
  25. package/dist/atlaspack-v3/fs.js +52 -0
  26. package/dist/atlaspack-v3/index.js +25 -0
  27. package/dist/atlaspack-v3/jsCallable.js +16 -0
  28. package/dist/atlaspack-v3/worker/compat/asset-symbols.js +190 -0
  29. package/dist/atlaspack-v3/worker/compat/bitflags.js +94 -0
  30. package/dist/atlaspack-v3/worker/compat/dependency.js +43 -0
  31. package/dist/atlaspack-v3/worker/compat/environment.js +57 -0
  32. package/dist/atlaspack-v3/worker/compat/index.js +25 -0
  33. package/dist/atlaspack-v3/worker/compat/mutable-asset.js +152 -0
  34. package/dist/atlaspack-v3/worker/compat/plugin-config.js +76 -0
  35. package/dist/atlaspack-v3/worker/compat/plugin-logger.js +26 -0
  36. package/dist/atlaspack-v3/worker/compat/plugin-options.js +122 -0
  37. package/dist/atlaspack-v3/worker/compat/plugin-tracer.js +10 -0
  38. package/dist/atlaspack-v3/worker/compat/target.js +14 -0
  39. package/dist/atlaspack-v3/worker/worker.js +292 -0
  40. package/dist/constants.js +17 -0
  41. package/dist/dumpGraphToGraphViz.js +281 -0
  42. package/dist/index.js +62 -0
  43. package/dist/loadAtlaspackPlugin.js +128 -0
  44. package/dist/loadDotEnv.js +41 -0
  45. package/dist/projectPath.js +83 -0
  46. package/dist/public/Asset.js +279 -0
  47. package/dist/public/Bundle.js +224 -0
  48. package/dist/public/BundleGraph.js +359 -0
  49. package/dist/public/BundleGroup.js +53 -0
  50. package/dist/public/Config.js +286 -0
  51. package/dist/public/Dependency.js +138 -0
  52. package/dist/public/Environment.js +278 -0
  53. package/dist/public/MutableBundleGraph.js +277 -0
  54. package/dist/public/PluginOptions.js +80 -0
  55. package/dist/public/Symbols.js +248 -0
  56. package/dist/public/Target.js +69 -0
  57. package/dist/registerCoreWithSerializer.js +38 -0
  58. package/dist/requests/AssetGraphRequest.js +429 -0
  59. package/dist/requests/AssetGraphRequestRust.js +246 -0
  60. package/dist/requests/AssetRequest.js +130 -0
  61. package/dist/requests/AtlaspackBuildRequest.js +60 -0
  62. package/dist/requests/AtlaspackConfigRequest.js +490 -0
  63. package/dist/requests/BundleGraphRequest.js +441 -0
  64. package/dist/requests/ConfigRequest.js +222 -0
  65. package/dist/requests/DevDepRequest.js +204 -0
  66. package/dist/requests/EntryRequest.js +314 -0
  67. package/dist/requests/PackageRequest.js +65 -0
  68. package/dist/requests/PathRequest.js +349 -0
  69. package/dist/requests/TargetRequest.js +1310 -0
  70. package/dist/requests/ValidationRequest.js +49 -0
  71. package/dist/requests/WriteBundleRequest.js +254 -0
  72. package/dist/requests/WriteBundlesRequest.js +165 -0
  73. package/dist/requests/asset-graph-diff.js +126 -0
  74. package/dist/requests/asset-graph-dot.js +131 -0
  75. package/dist/resolveOptions.js +268 -0
  76. package/dist/rustWorkerThreadDylibHack.js +19 -0
  77. package/dist/serializerCore.browser.js +43 -0
  78. package/dist/summarizeRequest.js +39 -0
  79. package/dist/types.js +31 -0
  80. package/dist/utils.js +172 -0
  81. package/dist/worker.js +123 -0
  82. package/lib/AssetGraph.js +1 -0
  83. package/lib/SymbolPropagation.js +3 -12
  84. package/lib/worker.js +0 -7
  85. package/package.json +13 -14
  86. package/src/AssetGraph.ts +1 -0
  87. package/src/SymbolPropagation.ts +5 -9
  88. package/src/worker.ts +0 -8
  89. package/tsconfig.json +55 -2
  90. package/tsconfig.tsbuildinfo +1 -0
package/dist/utils.js ADDED
@@ -0,0 +1,172 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.BuildAbortError = void 0;
7
+ exports.getBundleGroupId = getBundleGroupId;
8
+ exports.assertSignalNotAborted = assertSignalNotAborted;
9
+ exports.getPublicId = getPublicId;
10
+ exports.optionsProxy = optionsProxy;
11
+ exports.hashFromOption = hashFromOption;
12
+ exports.invalidateOnFileCreateToInternal = invalidateOnFileCreateToInternal;
13
+ exports.createInvalidations = createInvalidations;
14
+ exports.fromInternalSourceLocation = fromInternalSourceLocation;
15
+ exports.toInternalSourceLocation = toInternalSourceLocation;
16
+ exports.toInternalSymbols = toInternalSymbols;
17
+ const assert_1 = __importDefault(require("assert"));
18
+ const base_x_1 = __importDefault(require("base-x"));
19
+ const utils_1 = require("@atlaspack/utils");
20
+ const projectPath_1 = require("./projectPath");
21
+ // /flow-to-ts helpers
22
+ const base62 = (0, base_x_1.default)('0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ');
23
+ function getBundleGroupId(bundleGroup) {
24
+ return 'bundle_group:' + bundleGroup.target.name + bundleGroup.entryAssetId;
25
+ }
26
+ function assertSignalNotAborted(signal) {
27
+ if (signal && signal.aborted) {
28
+ throw new BuildAbortError();
29
+ }
30
+ }
31
+ class BuildAbortError extends Error {
32
+ constructor() {
33
+ super(...arguments);
34
+ this.name = 'BuildAbortError';
35
+ }
36
+ }
37
+ exports.BuildAbortError = BuildAbortError;
38
+ function getPublicId(id, alreadyExists) {
39
+ let encoded = base62.encode(Buffer.from(id, 'hex'));
40
+ for (let end = 5; end <= encoded.length; end++) {
41
+ let candidate = encoded.slice(0, end);
42
+ if (!alreadyExists(candidate)) {
43
+ return candidate;
44
+ }
45
+ }
46
+ throw new Error('Original id was not unique');
47
+ }
48
+ // These options don't affect compilation and should cause invalidations
49
+ const ignoreOptions = new Set([
50
+ 'env', // handled by separate invalidateOnEnvChange
51
+ 'inputFS',
52
+ 'outputFS',
53
+ 'workerFarm',
54
+ 'packageManager',
55
+ 'detailedReport',
56
+ 'shouldDisableCache',
57
+ 'cacheDir',
58
+ 'shouldAutoInstall',
59
+ 'logLevel',
60
+ 'shouldProfile',
61
+ 'shouldTrace',
62
+ 'shouldPatchConsole',
63
+ 'projectRoot',
64
+ 'additionalReporters',
65
+ ]);
66
+ function optionsProxy(options, invalidateOnOptionChange, addDevDependency) {
67
+ let packageManager = addDevDependency
68
+ ? proxyPackageManager(options.projectRoot, options.packageManager, addDevDependency)
69
+ : options.packageManager;
70
+ return new Proxy(options, {
71
+ get(target, prop) {
72
+ if (prop === 'packageManager') {
73
+ return packageManager;
74
+ }
75
+ if (!ignoreOptions.has(prop)) {
76
+ invalidateOnOptionChange(prop);
77
+ }
78
+ // @ts-expect-error TS7053
79
+ return target[prop];
80
+ },
81
+ });
82
+ }
83
+ function proxyPackageManager(projectRoot, packageManager, addDevDependency) {
84
+ let require = (id, from, opts) => {
85
+ addDevDependency({
86
+ specifier: id,
87
+ resolveFrom: (0, projectPath_1.toProjectPath)(projectRoot, from),
88
+ range: opts?.range,
89
+ });
90
+ return packageManager.require(id, from, opts);
91
+ };
92
+ return new Proxy(packageManager, {
93
+ get(target, prop) {
94
+ if (prop === 'require') {
95
+ return require;
96
+ }
97
+ // @ts-expect-error TS7053
98
+ return target[prop];
99
+ },
100
+ });
101
+ }
102
+ function hashFromOption(value) {
103
+ if (typeof value === 'object' && value != null) {
104
+ // @ts-expect-error TS2345
105
+ return (0, utils_1.hashObject)(value);
106
+ }
107
+ return String(value);
108
+ }
109
+ function invalidateOnFileCreateToInternal(projectRoot, invalidation) {
110
+ // @ts-expect-error TS2339
111
+ if (invalidation.glob != null) {
112
+ // @ts-expect-error TS2339
113
+ return { glob: (0, projectPath_1.toProjectPath)(projectRoot, invalidation.glob) };
114
+ // @ts-expect-error TS2339
115
+ }
116
+ else if (invalidation.filePath != null) {
117
+ return {
118
+ // @ts-expect-error TS2339
119
+ filePath: (0, projectPath_1.toProjectPath)(projectRoot, invalidation.filePath),
120
+ };
121
+ }
122
+ else {
123
+ (0, assert_1.default)(
124
+ // @ts-expect-error TS2339
125
+ invalidation.aboveFilePath != null && invalidation.fileName != null);
126
+ return {
127
+ // @ts-expect-error TS2339
128
+ fileName: invalidation.fileName,
129
+ // @ts-expect-error TS2339
130
+ aboveFilePath: (0, projectPath_1.toProjectPath)(projectRoot, invalidation.aboveFilePath),
131
+ };
132
+ }
133
+ }
134
+ function createInvalidations() {
135
+ return {
136
+ invalidateOnBuild: false,
137
+ invalidateOnStartup: false,
138
+ invalidateOnOptionChange: new Set(),
139
+ invalidateOnEnvChange: new Set(),
140
+ invalidateOnFileChange: new Set(),
141
+ invalidateOnFileCreate: [],
142
+ };
143
+ }
144
+ function fromInternalSourceLocation(projectRoot, loc) {
145
+ if (!loc)
146
+ return loc;
147
+ return {
148
+ filePath: (0, projectPath_1.fromProjectPath)(projectRoot, loc.filePath),
149
+ start: loc.start,
150
+ end: loc.end,
151
+ };
152
+ }
153
+ function toInternalSourceLocation(projectRoot, loc) {
154
+ if (!loc)
155
+ return loc;
156
+ return {
157
+ filePath: (0, projectPath_1.toProjectPath)(projectRoot, loc.filePath),
158
+ start: loc.start,
159
+ end: loc.end,
160
+ };
161
+ }
162
+ function toInternalSymbols(projectRoot, symbols) {
163
+ if (!symbols)
164
+ return symbols;
165
+ return new Map([...symbols].map(([k, { loc, ...v }]) => [
166
+ k,
167
+ {
168
+ ...v,
169
+ loc: toInternalSourceLocation(projectRoot, loc),
170
+ },
171
+ ]));
172
+ }
package/dist/worker.js ADDED
@@ -0,0 +1,123 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.clearWorkerBuildCaches = clearWorkerBuildCaches;
7
+ exports.runTransform = runTransform;
8
+ exports.runValidate = runValidate;
9
+ exports.runPackage = runPackage;
10
+ exports.childInit = childInit;
11
+ exports.invalidateRequireCache = invalidateRequireCache;
12
+ exports.ping = ping;
13
+ const utils_1 = require("@atlaspack/utils");
14
+ const assert_1 = __importDefault(require("assert"));
15
+ const nullthrows_1 = __importDefault(require("nullthrows"));
16
+ const BundleGraph_1 = __importDefault(require("./BundleGraph"));
17
+ const Transformation_1 = __importDefault(require("./Transformation"));
18
+ const ReporterRunner_1 = require("./ReporterRunner");
19
+ const PackagerRunner_1 = __importDefault(require("./PackagerRunner"));
20
+ const Validation_1 = __importDefault(require("./Validation"));
21
+ const AtlaspackConfig_1 = require("./AtlaspackConfig");
22
+ const registerCoreWithSerializer_1 = require("./registerCoreWithSerializer");
23
+ const build_cache_1 = require("@atlaspack/build-cache");
24
+ const source_map_1 = require("@parcel/source-map");
25
+ // @ts-expect-error TS2305
26
+ const rust_1 = require("@atlaspack/rust");
27
+ const workers_1 = __importDefault(require("@atlaspack/workers"));
28
+ const feature_flags_1 = require("@atlaspack/feature-flags");
29
+ require("@atlaspack/cache"); // register with serializer
30
+ require("@atlaspack/package-manager");
31
+ require("@atlaspack/fs");
32
+ // /flow-to-ts helpers
33
+ (0, registerCoreWithSerializer_1.registerCoreWithSerializer)();
34
+ // TODO: this should eventually be replaced by an in memory cache layer
35
+ let atlaspackConfigCache = new Map();
36
+ function loadOptions(ref, workerApi) {
37
+ return (0, nullthrows_1.default)(workerApi.getSharedReference(ref));
38
+ }
39
+ async function loadConfig(cachePath, options) {
40
+ let config = atlaspackConfigCache.get(cachePath);
41
+ if (config && config.options === options) {
42
+ return config;
43
+ }
44
+ let processedConfig = (0, nullthrows_1.default)(await options.cache.get(cachePath));
45
+ config = new AtlaspackConfig_1.AtlaspackConfig(processedConfig, options);
46
+ atlaspackConfigCache.set(cachePath, config);
47
+ (0, feature_flags_1.setFeatureFlags)(options.featureFlags);
48
+ return config;
49
+ }
50
+ function clearWorkerBuildCaches() {
51
+ utils_1.loadConfig.clear();
52
+ (0, build_cache_1.clearBuildCaches)();
53
+ }
54
+ async function runTransform(workerApi, opts) {
55
+ let { optionsRef, configCachePath, ...rest } = opts;
56
+ let options = loadOptions(optionsRef, workerApi);
57
+ let config = await loadConfig(configCachePath, options);
58
+ return new Transformation_1.default({
59
+ workerApi,
60
+ options,
61
+ // @ts-expect-error TS2783
62
+ config,
63
+ ...rest,
64
+ }).run();
65
+ }
66
+ async function runValidate(workerApi, opts) {
67
+ let { optionsRef, configCachePath, ...rest } = opts;
68
+ let options = loadOptions(optionsRef, workerApi);
69
+ let config = await loadConfig(configCachePath, options);
70
+ return new Validation_1.default({
71
+ workerApi,
72
+ // @ts-expect-error TS2783
73
+ report: ReporterRunner_1.reportWorker.bind(null, workerApi),
74
+ options,
75
+ // @ts-expect-error TS2783
76
+ config,
77
+ ...rest,
78
+ }).run();
79
+ }
80
+ async function runPackage(workerApi, { bundle, bundleGraphReference, configCachePath, optionsRef, previousDevDeps, invalidDevDeps, previousInvalidations, }) {
81
+ let bundleGraph = workerApi.getSharedReference(bundleGraphReference);
82
+ (0, assert_1.default)(bundleGraph instanceof BundleGraph_1.default);
83
+ let options = loadOptions(optionsRef, workerApi);
84
+ let atlaspackConfig = await loadConfig(configCachePath, options);
85
+ let runner = new PackagerRunner_1.default({
86
+ config: atlaspackConfig,
87
+ options,
88
+ // @ts-expect-error TS2322
89
+ report: workers_1.default.isWorker() ? ReporterRunner_1.reportWorker.bind(null, workerApi) : ReporterRunner_1.report,
90
+ previousDevDeps,
91
+ previousInvalidations,
92
+ });
93
+ return runner.run(bundleGraph, bundle, invalidDevDeps);
94
+ }
95
+ async function childInit() {
96
+ await source_map_1.init;
97
+ await (0, rust_1.init)?.();
98
+ }
99
+ const PKG_RE = /node_modules[/\\]((?:@[^/\\]+[/\\][^/\\]+)|[^/\\]+)(?!.*[/\\]node_modules[/\\])/;
100
+ function invalidateRequireCache(workerApi, file) {
101
+ if (process.env.ATLASPACK_BUILD_ENV === 'test') {
102
+ // Delete this module and all children in the same node_modules folder
103
+ let module = require.cache[file];
104
+ if (module) {
105
+ delete require.cache[file];
106
+ let pkg = file.match(PKG_RE)?.[1];
107
+ for (let child of module.children) {
108
+ if (pkg === child.id.match(PKG_RE)?.[1]) {
109
+ invalidateRequireCache(workerApi, child.id);
110
+ }
111
+ }
112
+ }
113
+ atlaspackConfigCache.clear();
114
+ return;
115
+ }
116
+ throw new Error('invalidateRequireCache is only for tests');
117
+ }
118
+ /**
119
+ * This is used to wait until workers are responding to messages.
120
+ */
121
+ function ping() {
122
+ return true;
123
+ }
package/lib/AssetGraph.js CHANGED
@@ -129,6 +129,7 @@ class AssetGraph extends _graph().ContentGraph {
129
129
  disableIncrementalBundling,
130
130
  ...rest
131
131
  } = opts;
132
+ // @ts-expect-error TS2345
132
133
  super(rest);
133
134
  this.hash = hash;
134
135
  this.#bundlingVersion = bundlingVersion ?? 0;
@@ -4,13 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.propagateSymbols = propagateSymbols;
7
- function _featureFlags() {
8
- const data = require("@atlaspack/feature-flags");
9
- _featureFlags = function () {
10
- return data;
11
- };
12
- return data;
13
- }
14
7
  function _assert() {
15
8
  const data = _interopRequireDefault(require("assert"));
16
9
  _assert = function () {
@@ -79,11 +72,9 @@ function propagateSymbols({
79
72
 
80
73
  // Propagate the requested symbols down from the root to the leaves
81
74
  propagateSymbolsDown(assetGraph, changedAssets, assetGroupsWithRemovedParents, (assetNode, incomingDeps, outgoingDeps) => {
82
- if ((0, _featureFlags().getFeatureFlag)('emptyFileStarRexportFix')) {
83
- if (assetNode.value.meta.emptyFileStarReexport && incomingDeps.every(d => d.value.specifierType === _types.SpecifierType.esm)) {
84
- var _assetNode$value$symb;
85
- (_assetNode$value$symb = assetNode.value.symbols) === null || _assetNode$value$symb === void 0 || _assetNode$value$symb.delete('*');
86
- }
75
+ if (assetNode.value.meta.emptyFileStarReexport && incomingDeps.every(d => d.value.specifierType === _types.SpecifierType.esm)) {
76
+ var _assetNode$value$symb;
77
+ (_assetNode$value$symb = assetNode.value.symbols) === null || _assetNode$value$symb === void 0 || _assetNode$value$symb.delete('*');
87
78
  }
88
79
 
89
80
  // exportSymbol -> identifier
package/lib/worker.js CHANGED
@@ -84,13 +84,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
84
84
  // flow-to-ts helpers
85
85
 
86
86
  // /flow-to-ts helpers
87
- // @ts-expect-error TS2339
88
- if (process.env.ATLASPACK_BUILD_REPL && process.browser) {
89
- /* eslint-disable import/no-extraneous-dependencies, monorepo/no-internal-import */
90
- require('@atlaspack/repl/src/atlaspack/BrowserPackageManager.js');
91
- require('@atlaspack/repl/src/atlaspack/ExtendedMemoryFS.js');
92
- /* eslint-enable import/no-extraneous-dependencies, monorepo/no-internal-import */
93
- }
94
87
 
95
88
  (0, _registerCoreWithSerializer.registerCoreWithSerializer)();
96
89
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/core",
3
- "version": "2.24.1",
3
+ "version": "2.24.2",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -19,26 +19,25 @@
19
19
  "test": "mocha",
20
20
  "test-ci": "mocha",
21
21
  "generate-ts": "tsc --emitDeclarationOnly",
22
- "check-ts": "tsc --emitDeclarationOnly --rootDir src",
23
22
  "build:lib": "gulp build --gulpfile ../../../gulpfile.js --cwd ."
24
23
  },
25
24
  "dependencies": {
26
25
  "@mischnic/json-sourcemap": "^0.1.0",
27
26
  "@atlaspack/build-cache": "2.13.6",
28
- "@atlaspack/cache": "3.2.26",
27
+ "@atlaspack/cache": "3.2.27",
29
28
  "@atlaspack/diagnostic": "2.14.4",
30
29
  "@atlaspack/events": "2.14.4",
31
- "@atlaspack/feature-flags": "2.25.1",
32
- "@atlaspack/fs": "2.15.26",
33
- "@atlaspack/graph": "3.5.20",
34
- "@atlaspack/logger": "2.14.23",
35
- "@atlaspack/package-manager": "2.14.31",
36
- "@atlaspack/plugin": "2.14.31",
37
- "@atlaspack/profiler": "2.14.28",
38
- "@atlaspack/rust": "3.8.1",
39
- "@atlaspack/types": "2.15.21",
40
- "@atlaspack/utils": "2.19.3",
41
- "@atlaspack/workers": "2.14.31",
30
+ "@atlaspack/feature-flags": "2.25.2",
31
+ "@atlaspack/fs": "2.15.27",
32
+ "@atlaspack/graph": "3.5.21",
33
+ "@atlaspack/logger": "2.14.24",
34
+ "@atlaspack/package-manager": "2.14.32",
35
+ "@atlaspack/plugin": "2.14.32",
36
+ "@atlaspack/profiler": "2.14.29",
37
+ "@atlaspack/rust": "3.8.2",
38
+ "@atlaspack/types": "2.15.22",
39
+ "@atlaspack/utils": "3.0.0",
40
+ "@atlaspack/workers": "2.14.32",
42
41
  "@parcel/source-map": "^2.1.1",
43
42
  "base-x": "^3.0.8",
44
43
  "browserslist": "^4.6.6",
package/src/AssetGraph.ts CHANGED
@@ -140,6 +140,7 @@ export default class AssetGraph extends ContentGraph<AssetGraphNode> {
140
140
  constructor(opts?: AssetGraphOpts | null) {
141
141
  if (opts) {
142
142
  let {hash, bundlingVersion, disableIncrementalBundling, ...rest} = opts;
143
+ // @ts-expect-error TS2345
143
144
  super(rest);
144
145
  this.hash = hash;
145
146
  this.#bundlingVersion = bundlingVersion ?? 0;
@@ -61,15 +61,11 @@ export function propagateSymbols({
61
61
  changedAssets,
62
62
  assetGroupsWithRemovedParents,
63
63
  (assetNode, incomingDeps, outgoingDeps) => {
64
- if (getFeatureFlag('emptyFileStarRexportFix')) {
65
- if (
66
- assetNode.value.meta.emptyFileStarReexport &&
67
- incomingDeps.every(
68
- (d) => d.value.specifierType === SpecifierType.esm,
69
- )
70
- ) {
71
- assetNode.value.symbols?.delete('*');
72
- }
64
+ if (
65
+ assetNode.value.meta.emptyFileStarReexport &&
66
+ incomingDeps.every((d) => d.value.specifierType === SpecifierType.esm)
67
+ ) {
68
+ assetNode.value.symbols?.delete('*');
73
69
  }
74
70
 
75
71
  // exportSymbol -> identifier
package/src/worker.ts CHANGED
@@ -39,14 +39,6 @@ export type Diff<T extends U, U extends object> = Pick<
39
39
  >;
40
40
  // /flow-to-ts helpers
41
41
 
42
- // @ts-expect-error TS2339
43
- if (process.env.ATLASPACK_BUILD_REPL && process.browser) {
44
- /* eslint-disable import/no-extraneous-dependencies, monorepo/no-internal-import */
45
- require('@atlaspack/repl/src/atlaspack/BrowserPackageManager.js');
46
- require('@atlaspack/repl/src/atlaspack/ExtendedMemoryFS.js');
47
- /* eslint-enable import/no-extraneous-dependencies, monorepo/no-internal-import */
48
- }
49
-
50
42
  registerCoreWithSerializer();
51
43
 
52
44
  // Remove the workerApi type from the TransformationOpts and ValidationOpts types:
package/tsconfig.json CHANGED
@@ -1,4 +1,57 @@
1
1
  {
2
- "extends": "../../../tsconfig.json",
3
- "include": ["src"]
2
+ "extends": "../../../tsconfig.base.json",
3
+ "include": ["./src/", "./package.json"],
4
+ "compilerOptions": {
5
+ "composite": true
6
+ },
7
+ "references": [
8
+ {
9
+ "path": "../../dev/babel-register/tsconfig.json"
10
+ },
11
+ {
12
+ "path": "../../utils/events/tsconfig.json"
13
+ },
14
+ {
15
+ "path": "../build-cache/tsconfig.json"
16
+ },
17
+ {
18
+ "path": "../cache/tsconfig.json"
19
+ },
20
+ {
21
+ "path": "../diagnostic/tsconfig.json"
22
+ },
23
+ {
24
+ "path": "../feature-flags/tsconfig.json"
25
+ },
26
+ {
27
+ "path": "../fs/tsconfig.json"
28
+ },
29
+ {
30
+ "path": "../graph/tsconfig.json"
31
+ },
32
+ {
33
+ "path": "../logger/tsconfig.json"
34
+ },
35
+ {
36
+ "path": "../package-manager/tsconfig.json"
37
+ },
38
+ {
39
+ "path": "../plugin/tsconfig.json"
40
+ },
41
+ {
42
+ "path": "../profiler/tsconfig.json"
43
+ },
44
+ {
45
+ "path": "../rust/tsconfig.json"
46
+ },
47
+ {
48
+ "path": "../types/tsconfig.json"
49
+ },
50
+ {
51
+ "path": "../utils/tsconfig.json"
52
+ },
53
+ {
54
+ "path": "../workers/tsconfig.json"
55
+ }
56
+ ]
4
57
  }