@lynx-js/cache-events-webpack-plugin-canary 0.0.1 → 0.0.2
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
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @lynx-js/cache-events-webpack-plugin
|
|
2
2
|
|
|
3
|
+
## 0.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix that `__webpack_require__.lynx_ce` is incorrectly injected when lazy bundle is enabled. ([#1616](https://github.com/lynx-family/lynx-stack/pull/1616))
|
|
8
|
+
|
|
3
9
|
## 0.0.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -76,12 +76,6 @@ export class LynxCacheEventsPluginImpl {
|
|
|
76
76
|
compilation.hooks.runtimeRequirementInTree
|
|
77
77
|
.for(RuntimeGlobals.startup)
|
|
78
78
|
.tap(this.name, handler);
|
|
79
|
-
compilation.hooks.runtimeRequirementInTree
|
|
80
|
-
.for(RuntimeGlobals.ensureChunk)
|
|
81
|
-
.tap(this.name, handler);
|
|
82
|
-
compilation.hooks.runtimeRequirementInTree
|
|
83
|
-
.for(RuntimeGlobals.ensureChunkIncludeEntries)
|
|
84
|
-
.tap(this.name, handler);
|
|
85
79
|
const onceForChunkSet = {
|
|
86
80
|
[LynxRuntimeGlobals.lynxAsyncChunkIds]: new WeakSet(),
|
|
87
81
|
[LynxRuntimeGlobals.lynxCacheEvents]: new WeakSet(),
|
|
@@ -95,6 +89,9 @@ export class LynxCacheEventsPluginImpl {
|
|
|
95
89
|
return;
|
|
96
90
|
}
|
|
97
91
|
onceForChunkSet[LynxRuntimeGlobals.lynxCacheEventsSetupList].add(chunk);
|
|
92
|
+
if (chunk.name?.includes('__main-thread')) {
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
98
95
|
compilation.addRuntimeModule(chunk, new LynxCacheEventsSetupListRuntimeModule(this.options.setupListTransformer));
|
|
99
96
|
});
|
|
100
97
|
compilation.hooks.runtimeRequirementInTree.for(LynxRuntimeGlobals.lynxCacheEvents).tap(this.name, (chunk, set) => {
|
|
@@ -103,6 +100,9 @@ export class LynxCacheEventsPluginImpl {
|
|
|
103
100
|
return;
|
|
104
101
|
}
|
|
105
102
|
onceForChunkSet[LynxRuntimeGlobals.lynxCacheEvents].add(chunk);
|
|
103
|
+
if (chunk.name?.includes('__main-thread')) {
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
106
|
set.add(LynxRuntimeGlobals.lynxCacheEventsSetupList);
|
|
107
107
|
compilation.addRuntimeModule(chunk, new LynxCacheEventsRuntimeModule());
|
|
108
108
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/cache-events-webpack-plugin-canary",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "Cache Lynx native events until the BTS chunk is fully loaded, and replay them when the BTS chunk is ready.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"webpack": "^5.101.3",
|
|
39
|
-
"@lynx-js/chunk-loading-webpack-plugin": "npm:@lynx-js/chunk-loading-webpack-plugin-canary@0.3.
|
|
39
|
+
"@lynx-js/chunk-loading-webpack-plugin": "npm:@lynx-js/chunk-loading-webpack-plugin-canary@0.3.2",
|
|
40
40
|
"@lynx-js/test-tools": "0.0.0",
|
|
41
41
|
"@lynx-js/vitest-setup": "0.0.0"
|
|
42
42
|
},
|