@atlaspack/packager-html 2.12.1-dev.3368 → 2.12.1-dev.3401
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/HTMLPackager.js +3 -3
- package/package.json +6 -6
- package/src/HTMLPackager.js +3 -3
package/lib/HTMLPackager.js
CHANGED
|
@@ -136,13 +136,13 @@ async function getAssetContent(bundleGraph, getInlineBundleContents, assetId) {
|
|
|
136
136
|
async function replaceInlineAssetContent(bundleGraph, getInlineBundleContents, tree) {
|
|
137
137
|
const inlineNodes = [];
|
|
138
138
|
tree.walk(node => {
|
|
139
|
-
if (node.attrs && node.attrs['data-
|
|
139
|
+
if (node.attrs && node.attrs['data-parcel-key']) {
|
|
140
140
|
inlineNodes.push(node);
|
|
141
141
|
}
|
|
142
142
|
return node;
|
|
143
143
|
});
|
|
144
144
|
for (let node of inlineNodes) {
|
|
145
|
-
let newContent = await getAssetContent(bundleGraph, getInlineBundleContents, node.attrs['data-
|
|
145
|
+
let newContent = await getAssetContent(bundleGraph, getInlineBundleContents, node.attrs['data-parcel-key']);
|
|
146
146
|
if (newContent != null) {
|
|
147
147
|
let {
|
|
148
148
|
contents,
|
|
@@ -167,7 +167,7 @@ async function replaceInlineAssetContent(bundleGraph, getInlineBundleContents, t
|
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
// remove attr from output
|
|
170
|
-
delete node.attrs['data-
|
|
170
|
+
delete node.attrs['data-parcel-key'];
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
return tree;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/packager-html",
|
|
3
|
-
"version": "2.12.1-dev.
|
|
3
|
+
"version": "2.12.1-dev.3401+b483af77f",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
"source": "src/HTMLPackager.js",
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">= 16.0.0",
|
|
16
|
-
"
|
|
16
|
+
"parcel": "^2.12.1-dev.3401+b483af77f"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@atlaspack/plugin": "2.12.1-dev.
|
|
20
|
-
"@atlaspack/types": "2.12.1-dev.
|
|
21
|
-
"@atlaspack/utils": "2.12.1-dev.
|
|
19
|
+
"@atlaspack/plugin": "2.12.1-dev.3401+b483af77f",
|
|
20
|
+
"@atlaspack/types": "2.12.1-dev.3401+b483af77f",
|
|
21
|
+
"@atlaspack/utils": "2.12.1-dev.3401+b483af77f",
|
|
22
22
|
"nullthrows": "^1.1.1",
|
|
23
23
|
"posthtml": "^0.16.5"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "b483af77f02d1258c8dad156e097b94f83671d8e"
|
|
26
26
|
}
|
package/src/HTMLPackager.js
CHANGED
|
@@ -132,7 +132,7 @@ async function replaceInlineAssetContent(
|
|
|
132
132
|
) {
|
|
133
133
|
const inlineNodes = [];
|
|
134
134
|
tree.walk(node => {
|
|
135
|
-
if (node.attrs && node.attrs['data-
|
|
135
|
+
if (node.attrs && node.attrs['data-parcel-key']) {
|
|
136
136
|
inlineNodes.push(node);
|
|
137
137
|
}
|
|
138
138
|
return node;
|
|
@@ -142,7 +142,7 @@ async function replaceInlineAssetContent(
|
|
|
142
142
|
let newContent = await getAssetContent(
|
|
143
143
|
bundleGraph,
|
|
144
144
|
getInlineBundleContents,
|
|
145
|
-
node.attrs['data-
|
|
145
|
+
node.attrs['data-parcel-key'],
|
|
146
146
|
);
|
|
147
147
|
|
|
148
148
|
if (newContent != null) {
|
|
@@ -174,7 +174,7 @@ async function replaceInlineAssetContent(
|
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
// remove attr from output
|
|
177
|
-
delete node.attrs['data-
|
|
177
|
+
delete node.attrs['data-parcel-key'];
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
|