Excluding a JSON file can achieved with the externals option for sure:
externals: { "./users.json": "[]" }
The configuration replaces the import of ./users.json with an empty array literal in bundled code.
./users.json