@kaliber/build 0.0.124 → 0.0.127
Sign up to get free protection for your applications and to get access to all the features.
- package/.eslintrc +1 -0
- package/lib/build.js +2 -1
- package/lib/universalComponents.js +3 -1
- package/package.json +1 -1
- package/webpack-plugins/template-plugin.js +2 -1
package/.eslintrc
CHANGED
package/lib/build.js
CHANGED
@@ -12,7 +12,9 @@ export function ComponentServerWrapper({ componentName, props, renderedComponent
|
|
12
12
|
|
13
13
|
{/* Use render blocking script to remove the container and supply the correct comment nodes.
|
14
14
|
This ensures the page is never rendered with the intermediate structure */}
|
15
|
-
<script dangerouslySetInnerHTML={{
|
15
|
+
<script dangerouslySetInnerHTML={{
|
16
|
+
__html: restructureDomNodes(componentInfo).replace(/<\/?script>/gi, '')
|
17
|
+
}} />
|
16
18
|
</>
|
17
19
|
)
|
18
20
|
}
|
package/package.json
CHANGED
@@ -93,8 +93,9 @@ module.exports = function templatePlugin(renderers) {
|
|
93
93
|
*/
|
94
94
|
compilation.hooks.chunkAsset.tap(p, (chunk, file) => {
|
95
95
|
if (!chunk.entryModule) return
|
96
|
+
const rootModule = chunk.entryModule.rootModule || chunk.entryModule
|
96
97
|
const { module } =
|
97
|
-
|
98
|
+
rootModule.dependencies.find(x =>
|
98
99
|
x.module && x.module.request.endsWith('?template-source')
|
99
100
|
) || {}
|
100
101
|
if (!module) return
|