@atlaspack/utils 2.12.1-dev.3367 → 2.12.1-dev.3398
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/index.js +299 -299
- package/lib/index.js.map +1 -1
- package/package.json +7 -7
- package/src/generateCertificate.js +2 -2
- package/src/hash.js +1 -1
- package/src/replaceBundleReferences.js +1 -1
- package/test/sourcemap.test.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/utils",
|
|
3
|
-
"version": "2.12.1-dev.
|
|
3
|
+
"version": "2.12.1-dev.3398+81c73b3cd",
|
|
4
4
|
"description": "Blazing fast, zero configuration web application bundler",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@atlaspack/codeframe": "2.12.1-dev.
|
|
33
|
-
"@atlaspack/diagnostic": "2.12.1-dev.
|
|
34
|
-
"@atlaspack/logger": "2.12.1-dev.
|
|
35
|
-
"@atlaspack/markdown-ansi": "2.12.1-dev.
|
|
36
|
-
"@atlaspack/rust": "2.12.1-dev.
|
|
32
|
+
"@atlaspack/codeframe": "2.12.1-dev.3398+81c73b3cd",
|
|
33
|
+
"@atlaspack/diagnostic": "2.12.1-dev.3398+81c73b3cd",
|
|
34
|
+
"@atlaspack/logger": "2.12.1-dev.3398+81c73b3cd",
|
|
35
|
+
"@atlaspack/markdown-ansi": "2.12.1-dev.3398+81c73b3cd",
|
|
36
|
+
"@atlaspack/rust": "2.12.1-dev.3398+81c73b3cd",
|
|
37
37
|
"@parcel/source-map": "^2.1.1",
|
|
38
38
|
"chalk": "^4.1.0",
|
|
39
39
|
"nullthrows": "^1.1.1"
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"./src/openInBrowser.js": false,
|
|
64
64
|
"@atlaspack/markdown-ansi": false
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "81c73b3cdf93adf8b0013be9fed5422579bd5910"
|
|
67
67
|
}
|
|
@@ -40,7 +40,7 @@ export default async function generateCertificate(
|
|
|
40
40
|
const attrs = [
|
|
41
41
|
{
|
|
42
42
|
name: 'commonName',
|
|
43
|
-
value: '
|
|
43
|
+
value: 'parceljs.org',
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
name: 'countryName',
|
|
@@ -56,7 +56,7 @@ export default async function generateCertificate(
|
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
name: 'organizationName',
|
|
59
|
-
value: '
|
|
59
|
+
value: 'parcelBundler',
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
shortName: 'OU',
|
package/src/hash.js
CHANGED
|
@@ -36,7 +36,7 @@ export function hashFile(fs: FileSystem, filePath: string): Promise<string> {
|
|
|
36
36
|
if (process.env.ATLASPACK_BUILD_ENV === 'test') {
|
|
37
37
|
// Development builds of these native modules are especially big and slow to hash.
|
|
38
38
|
if (
|
|
39
|
-
/
|
|
39
|
+
/parcel-swc\.[^\\/]+\.node$|lightningcss.[^\\/]+.node$/.test(filePath)
|
|
40
40
|
) {
|
|
41
41
|
let cacheEntry = testCache[filePath];
|
|
42
42
|
if (cacheEntry) return cacheEntry;
|
|
@@ -24,7 +24,7 @@ type ReplacementMap = Map<
|
|
|
24
24
|
/*
|
|
25
25
|
* Replaces references to dependency ids for URL dependencies with:
|
|
26
26
|
* - in the case of an unresolvable url dependency, the original specifier.
|
|
27
|
-
* These are external requests that
|
|
27
|
+
* These are external requests that Parcel did not bundle.
|
|
28
28
|
* - in the case of a reference to another bundle, the relative url to that
|
|
29
29
|
* bundle from the current bundle.
|
|
30
30
|
*/
|
package/test/sourcemap.test.js
CHANGED
|
@@ -11,7 +11,7 @@ const fs = new NodeFS();
|
|
|
11
11
|
|
|
12
12
|
describe('loadSourceMap', () => {
|
|
13
13
|
it('should not match sourceMappingURL when not at the end of the bundle', () => {
|
|
14
|
-
// Code example taken from livescript.js (issue #2408 in
|
|
14
|
+
// Code example taken from livescript.js (issue #2408 in parcel-bundler)
|
|
15
15
|
// This snippet lead to JSAsset.js being mislead and incorrectly trying to
|
|
16
16
|
// load (due to false-positive match) sourcemap before fix was introduced
|
|
17
17
|
let code = fs.readFileSync(
|