@atlaspack/core 2.12.1-canary.3368 → 2.12.1-canary.3370
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.
|
@@ -81,6 +81,12 @@ function getAssetGraph(serializedGraph, options) {
|
|
|
81
81
|
_nodeIdToContentKey: new Map()
|
|
82
82
|
});
|
|
83
83
|
graph.safeToIncrementallyBundle = false;
|
|
84
|
+
|
|
85
|
+
// See crates/atlaspack_core/src/types/environment.rs
|
|
86
|
+
let sourceTypeLookup = {
|
|
87
|
+
'0': 'module',
|
|
88
|
+
'1': 'script'
|
|
89
|
+
};
|
|
84
90
|
let cachedAssets = new Map();
|
|
85
91
|
let changedAssets = new Map();
|
|
86
92
|
let entry = 0;
|
|
@@ -106,6 +112,11 @@ function getAssetGraph(serializedGraph, options) {
|
|
|
106
112
|
asset = {
|
|
107
113
|
...asset,
|
|
108
114
|
id,
|
|
115
|
+
env: {
|
|
116
|
+
...asset.env,
|
|
117
|
+
sourceType: sourceTypeLookup[asset.env.sourceType]
|
|
118
|
+
},
|
|
119
|
+
bundleBehavior: asset.bundleBehavior === 255 ? null : asset.bundleBehavior,
|
|
109
120
|
committed: true,
|
|
110
121
|
contentKey: id,
|
|
111
122
|
filePath: (0, _projectPath.toProjectPath)(options.projectRoot, asset.filePath),
|
|
@@ -130,6 +141,11 @@ function getAssetGraph(serializedGraph, options) {
|
|
|
130
141
|
dependency = {
|
|
131
142
|
...dependency,
|
|
132
143
|
id,
|
|
144
|
+
env: {
|
|
145
|
+
...dependency.env,
|
|
146
|
+
sourceType: sourceTypeLookup[dependency.env.sourceType]
|
|
147
|
+
},
|
|
148
|
+
bundleBehavior: dependency.bundleBehavior === 255 ? null : dependency.bundleBehavior,
|
|
133
149
|
contentKey: id,
|
|
134
150
|
sourcePath: dependency.sourcePath ? (0, _projectPath.toProjectPath)(options.projectRoot, dependency.sourcePath) : null,
|
|
135
151
|
symbols: dependency.hasSymbols ? new Map(dependency.symbols.map(({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/core",
|
|
3
|
-
"version": "2.12.1-canary.
|
|
3
|
+
"version": "2.12.1-canary.3370+d6a6bf9c8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -20,20 +20,20 @@
|
|
|
20
20
|
"check-ts": "tsc --noEmit index.d.ts"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@atlaspack/cache": "2.12.1-canary.
|
|
24
|
-
"@atlaspack/diagnostic": "2.12.1-canary.
|
|
25
|
-
"@atlaspack/events": "2.12.1-canary.
|
|
26
|
-
"@atlaspack/feature-flags": "2.12.1-canary.
|
|
27
|
-
"@atlaspack/fs": "2.12.1-canary.
|
|
28
|
-
"@atlaspack/graph": "3.2.1-canary.
|
|
29
|
-
"@atlaspack/logger": "2.12.1-canary.
|
|
30
|
-
"@atlaspack/package-manager": "2.12.1-canary.
|
|
31
|
-
"@atlaspack/plugin": "2.12.1-canary.
|
|
32
|
-
"@atlaspack/profiler": "2.12.1-canary.
|
|
33
|
-
"@atlaspack/rust": "2.12.1-canary.
|
|
34
|
-
"@atlaspack/types": "2.12.1-canary.
|
|
35
|
-
"@atlaspack/utils": "2.12.1-canary.
|
|
36
|
-
"@atlaspack/workers": "2.12.1-canary.
|
|
23
|
+
"@atlaspack/cache": "2.12.1-canary.3370+d6a6bf9c8",
|
|
24
|
+
"@atlaspack/diagnostic": "2.12.1-canary.3370+d6a6bf9c8",
|
|
25
|
+
"@atlaspack/events": "2.12.1-canary.3370+d6a6bf9c8",
|
|
26
|
+
"@atlaspack/feature-flags": "2.12.1-canary.3370+d6a6bf9c8",
|
|
27
|
+
"@atlaspack/fs": "2.12.1-canary.3370+d6a6bf9c8",
|
|
28
|
+
"@atlaspack/graph": "3.2.1-canary.3370+d6a6bf9c8",
|
|
29
|
+
"@atlaspack/logger": "2.12.1-canary.3370+d6a6bf9c8",
|
|
30
|
+
"@atlaspack/package-manager": "2.12.1-canary.3370+d6a6bf9c8",
|
|
31
|
+
"@atlaspack/plugin": "2.12.1-canary.3370+d6a6bf9c8",
|
|
32
|
+
"@atlaspack/profiler": "2.12.1-canary.3370+d6a6bf9c8",
|
|
33
|
+
"@atlaspack/rust": "2.12.1-canary.3370+d6a6bf9c8",
|
|
34
|
+
"@atlaspack/types": "2.12.1-canary.3370+d6a6bf9c8",
|
|
35
|
+
"@atlaspack/utils": "2.12.1-canary.3370+d6a6bf9c8",
|
|
36
|
+
"@atlaspack/workers": "2.12.1-canary.3370+d6a6bf9c8",
|
|
37
37
|
"@mischnic/json-sourcemap": "^0.1.0",
|
|
38
38
|
"@parcel/source-map": "^2.1.1",
|
|
39
39
|
"base-x": "^3.0.8",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"browser": {
|
|
56
56
|
"./src/serializerCore.js": "./src/serializerCore.browser.js"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "d6a6bf9c8addfcec0d4128eab6bae6aad41ac5ca"
|
|
59
59
|
}
|
|
@@ -95,6 +95,8 @@ function getAssetGraph(serializedGraph, options) {
|
|
|
95
95
|
|
|
96
96
|
graph.safeToIncrementallyBundle = false;
|
|
97
97
|
|
|
98
|
+
// See crates/atlaspack_core/src/types/environment.rs
|
|
99
|
+
let sourceTypeLookup = {'0': 'module', '1': 'script'};
|
|
98
100
|
let cachedAssets = new Map();
|
|
99
101
|
let changedAssets = new Map();
|
|
100
102
|
let entry = 0;
|
|
@@ -123,6 +125,12 @@ function getAssetGraph(serializedGraph, options) {
|
|
|
123
125
|
asset = {
|
|
124
126
|
...asset,
|
|
125
127
|
id,
|
|
128
|
+
env: {
|
|
129
|
+
...asset.env,
|
|
130
|
+
sourceType: sourceTypeLookup[asset.env.sourceType],
|
|
131
|
+
},
|
|
132
|
+
bundleBehavior:
|
|
133
|
+
asset.bundleBehavior === 255 ? null : asset.bundleBehavior,
|
|
126
134
|
committed: true,
|
|
127
135
|
contentKey: id,
|
|
128
136
|
filePath: toProjectPath(options.projectRoot, asset.filePath),
|
|
@@ -151,6 +159,12 @@ function getAssetGraph(serializedGraph, options) {
|
|
|
151
159
|
dependency = {
|
|
152
160
|
...dependency,
|
|
153
161
|
id,
|
|
162
|
+
env: {
|
|
163
|
+
...dependency.env,
|
|
164
|
+
sourceType: sourceTypeLookup[dependency.env.sourceType],
|
|
165
|
+
},
|
|
166
|
+
bundleBehavior:
|
|
167
|
+
dependency.bundleBehavior === 255 ? null : dependency.bundleBehavior,
|
|
154
168
|
contentKey: id,
|
|
155
169
|
sourcePath: dependency.sourcePath
|
|
156
170
|
? toProjectPath(options.projectRoot, dependency.sourcePath)
|