Webpack warnings about parsing .hh/.cc files #535
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I've been getting a bunch of warnings in webpack about parsing the .hh and .cc files in the javascript source. Example:
Turns out one of entry-common.js's requires is using an expression statement and doesn't need to. Doing so causes webpack to do a dynamic lookup, leading to it doing a general parse of
./~/yoga-layout/sources ^\.\/.*$
which ends up including the .hh/.cc.Easy fix, just need to change the expression statement to a static string.