@atlaspack/transformer-html 2.15.3-dev-inline-requires-reuse-bdc9ca9c3.0 → 2.15.4-inline-requires-take-2-2a0c642df.0
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/CHANGELOG.md +12 -0
- package/lib/inline.js +1 -8
- package/package.json +7 -7
- package/src/inline.ts +1 -4
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# @atlaspack/transformer-html
|
2
2
|
|
3
|
+
## 2.15.3
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#742](https://github.com/atlassian-labs/atlaspack/pull/742) [`ee040bb`](https://github.com/atlassian-labs/atlaspack/commit/ee040bb6428f29b57d892ddd8107e29077d08ffd) Thanks [@yamadapc](https://github.com/yamadapc)! - Internal changes and bug fixes to environmentDeduplication flag
|
8
|
+
|
9
|
+
- Updated dependencies [[`ee040bb`](https://github.com/atlassian-labs/atlaspack/commit/ee040bb6428f29b57d892ddd8107e29077d08ffd)]:
|
10
|
+
- @atlaspack/feature-flags@2.23.1
|
11
|
+
- @atlaspack/diagnostic@2.14.3
|
12
|
+
- @atlaspack/plugin@2.14.26
|
13
|
+
- @atlaspack/rust@3.6.1
|
14
|
+
|
3
15
|
## 2.15.2
|
4
16
|
|
5
17
|
### Patch Changes
|
package/lib/inline.js
CHANGED
@@ -18,13 +18,6 @@ function _posthtml() {
|
|
18
18
|
};
|
19
19
|
return data;
|
20
20
|
}
|
21
|
-
function _featureFlags() {
|
22
|
-
const data = require("@atlaspack/feature-flags");
|
23
|
-
_featureFlags = function () {
|
24
|
-
return data;
|
25
|
-
};
|
26
|
-
return data;
|
27
|
-
}
|
28
21
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
29
22
|
// @ts-expect-error TS2724
|
30
23
|
|
@@ -121,7 +114,7 @@ function extractInlineAssets(asset, ast) {
|
|
121
114
|
delete node.attrs.type;
|
122
115
|
}
|
123
116
|
let bundleBehavior = 'inline';
|
124
|
-
if (
|
117
|
+
if (typeof node.attrs['data-atlaspack-isolated'] !== 'undefined') {
|
125
118
|
bundleBehavior = 'inlineIsolated';
|
126
119
|
delete node.attrs['data-atlaspack-isolated'];
|
127
120
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaspack/transformer-html",
|
3
|
-
"version": "2.15.
|
3
|
+
"version": "2.15.4-inline-requires-take-2-2a0c642df.0",
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public"
|
@@ -21,10 +21,10 @@
|
|
21
21
|
"node": ">= 16.0.0"
|
22
22
|
},
|
23
23
|
"dependencies": {
|
24
|
-
"@atlaspack/diagnostic": "2.14.
|
25
|
-
"@atlaspack/feature-flags": "2.23.
|
26
|
-
"@atlaspack/plugin": "2.14.
|
27
|
-
"@atlaspack/rust": "3.6.
|
24
|
+
"@atlaspack/diagnostic": "2.14.4-inline-requires-take-2-2a0c642df.0",
|
25
|
+
"@atlaspack/feature-flags": "2.23.2-inline-requires-take-2-2a0c642df.0",
|
26
|
+
"@atlaspack/plugin": "2.14.27-inline-requires-take-2-2a0c642df.0",
|
27
|
+
"@atlaspack/rust": "3.6.2-inline-requires-take-2-2a0c642df.0",
|
28
28
|
"nullthrows": "^1.1.1",
|
29
29
|
"posthtml": "^0.16.5",
|
30
30
|
"posthtml-parser": "^0.10.1",
|
@@ -33,8 +33,8 @@
|
|
33
33
|
"srcset": "4"
|
34
34
|
},
|
35
35
|
"devDependencies": {
|
36
|
-
"@atlaspack/core": "2.23.
|
36
|
+
"@atlaspack/core": "2.23.3-inline-requires-take-2-2a0c642df.0"
|
37
37
|
},
|
38
38
|
"type": "commonjs",
|
39
|
-
"gitHead": "
|
39
|
+
"gitHead": "2a0c642dfe354e30a8cbd23be0b1a283eab54040"
|
40
40
|
}
|
package/src/inline.ts
CHANGED
@@ -127,10 +127,7 @@ export default function extractInlineAssets(
|
|
127
127
|
}
|
128
128
|
|
129
129
|
let bundleBehavior: BundleBehavior = 'inline';
|
130
|
-
if (
|
131
|
-
getFeatureFlag('inlineIsolatedScripts') &&
|
132
|
-
typeof node.attrs['data-atlaspack-isolated'] !== 'undefined'
|
133
|
-
) {
|
130
|
+
if (typeof node.attrs['data-atlaspack-isolated'] !== 'undefined') {
|
134
131
|
bundleBehavior = 'inlineIsolated';
|
135
132
|
delete node.attrs['data-atlaspack-isolated'];
|
136
133
|
}
|