You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The change in package/rule/file.js as part of #1058 made file-loader catch all files not matching some exclude pattern instead of testing against a test pattern.
This means that any file extension not included in the hard-coded exclude pattern is treated by Webpack as a file and tries to generate a dynamic export.
In particular, I was using pug-loader with the following loader config:
But since the .jade and .pug file extensions are not part of the hard-coded exclude pattern, Webpack would generate a dynamic export which my app (import template from "file.jade" made template a path string instead of a template function).
The text was updated successfully, but these errors were encountered:
The change in package/rule/file.js as part of #1058 made
file-loader
catch all files not matching someexclude
pattern instead of testing against atest
pattern.This means that any file extension not included in the hard-coded
exclude
pattern is treated by Webpack as a file and tries to generate a dynamic export.In particular, I was using pug-loader with the following loader config:
But since the
.jade
and.pug
file extensions are not part of the hard-codedexclude
pattern, Webpack would generate a dynamic export which my app (import template from "file.jade"
madetemplate
a path string instead of a template function).The text was updated successfully, but these errors were encountered: