fix: bundle resources other than js(x)/json in node_modules #4913
Types of changes
Disable webpack-node-externals for resources which are not js/jsx/json, like: images, fonts or videos
@@ Coverage Diff @@ ## dev #4913 +/- ## ========================================== + Coverage 91.71% 91.79% +0.08% ========================================== Files 73 73 Lines 2414 2414 Branches 594 594 ========================================== + Hits 2214 2216 +2 + Misses 182 180 -2 Partials 18 18
ts needs to be transpiled by ts-loader, maybe should exclude when use ts-node.
But we cannot make sure that user will use same distribution in building and start.
For example, if user built bundles with nuxt-ts and start with nuxt, the ts files still need to be transpiled, so I think current config is proper