@atlaspack/core 2.12.1-canary.3487 → 2.12.1-canary.3489
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.
|
@@ -181,9 +181,11 @@ class AtlaspackWorker {
|
|
|
181
181
|
state.packageManager = packageManager;
|
|
182
182
|
}
|
|
183
183
|
const transformer = state.transformer;
|
|
184
|
-
const resolveFunc = (from, to) =>
|
|
185
|
-
|
|
186
|
-
|
|
184
|
+
const resolveFunc = (from, to) => {
|
|
185
|
+
let customRequire = _module().createRequire(from);
|
|
186
|
+
let resolvedPath = customRequire.resolve(to);
|
|
187
|
+
return Promise.resolve(resolvedPath);
|
|
188
|
+
};
|
|
187
189
|
const env = new _compat.Environment(napiEnv);
|
|
188
190
|
const mutableAsset = new _compat.MutableAsset(innerAsset, this.#fs, env);
|
|
189
191
|
const defaultOptions = {
|
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.3489+4f4afe411",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -20,21 +20,21 @@
|
|
|
20
20
|
"check-ts": "tsc --noEmit index.d.ts"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@atlaspack/build-cache": "2.12.1-canary.
|
|
24
|
-
"@atlaspack/cache": "2.12.1-canary.
|
|
25
|
-
"@atlaspack/diagnostic": "2.12.1-canary.
|
|
26
|
-
"@atlaspack/events": "2.12.1-canary.
|
|
27
|
-
"@atlaspack/feature-flags": "2.12.1-canary.
|
|
28
|
-
"@atlaspack/fs": "2.12.1-canary.
|
|
29
|
-
"@atlaspack/graph": "3.2.1-canary.
|
|
30
|
-
"@atlaspack/logger": "2.12.1-canary.
|
|
31
|
-
"@atlaspack/package-manager": "2.12.1-canary.
|
|
32
|
-
"@atlaspack/plugin": "2.12.1-canary.
|
|
33
|
-
"@atlaspack/profiler": "2.12.1-canary.
|
|
34
|
-
"@atlaspack/rust": "2.12.1-canary.
|
|
35
|
-
"@atlaspack/types": "2.12.1-canary.
|
|
36
|
-
"@atlaspack/utils": "2.12.1-canary.
|
|
37
|
-
"@atlaspack/workers": "2.12.1-canary.
|
|
23
|
+
"@atlaspack/build-cache": "2.12.1-canary.3489+4f4afe411",
|
|
24
|
+
"@atlaspack/cache": "2.12.1-canary.3489+4f4afe411",
|
|
25
|
+
"@atlaspack/diagnostic": "2.12.1-canary.3489+4f4afe411",
|
|
26
|
+
"@atlaspack/events": "2.12.1-canary.3489+4f4afe411",
|
|
27
|
+
"@atlaspack/feature-flags": "2.12.1-canary.3489+4f4afe411",
|
|
28
|
+
"@atlaspack/fs": "2.12.1-canary.3489+4f4afe411",
|
|
29
|
+
"@atlaspack/graph": "3.2.1-canary.3489+4f4afe411",
|
|
30
|
+
"@atlaspack/logger": "2.12.1-canary.3489+4f4afe411",
|
|
31
|
+
"@atlaspack/package-manager": "2.12.1-canary.3489+4f4afe411",
|
|
32
|
+
"@atlaspack/plugin": "2.12.1-canary.3489+4f4afe411",
|
|
33
|
+
"@atlaspack/profiler": "2.12.1-canary.3489+4f4afe411",
|
|
34
|
+
"@atlaspack/rust": "2.12.1-canary.3489+4f4afe411",
|
|
35
|
+
"@atlaspack/types": "2.12.1-canary.3489+4f4afe411",
|
|
36
|
+
"@atlaspack/utils": "2.12.1-canary.3489+4f4afe411",
|
|
37
|
+
"@atlaspack/workers": "2.12.1-canary.3489+4f4afe411",
|
|
38
38
|
"@mischnic/json-sourcemap": "^0.1.0",
|
|
39
39
|
"@parcel/source-map": "^2.1.1",
|
|
40
40
|
"base-x": "^3.0.8",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"browser": {
|
|
66
66
|
"./src/serializerCore.js": "./src/serializerCore.browser.js"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "4f4afe411f74d3a3b3c2d74ef77f4e5c2fc40dcf"
|
|
69
69
|
}
|
|
@@ -174,8 +174,12 @@ export class AtlaspackWorker {
|
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
const transformer: Transformer<any> = state.transformer;
|
|
177
|
-
const resolveFunc = (from: string, to: string): Promise<any> =>
|
|
178
|
-
|
|
177
|
+
const resolveFunc = (from: string, to: string): Promise<any> => {
|
|
178
|
+
let customRequire = module.createRequire(from);
|
|
179
|
+
let resolvedPath = customRequire.resolve(to);
|
|
180
|
+
|
|
181
|
+
return Promise.resolve(resolvedPath);
|
|
182
|
+
};
|
|
179
183
|
const env = new Environment(napiEnv);
|
|
180
184
|
const mutableAsset = new MutableAsset(innerAsset, this.#fs, env);
|
|
181
185
|
const defaultOptions = {
|