@kaliber/build 0.0.125 → 0.0.126
Sign up to get free protection for your applications and to get access to all the features.
- package/.eslintrc +1 -0
- package/package.json +1 -1
- package/webpack-plugins/template-plugin.js +2 -1
package/.eslintrc
CHANGED
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
|