You should be able to overwrite a core module completely using your plugins modules section. For example to overwrite the navigator module with your own you can do.
"modules": {
"navigator": "public/navigator.js"
},
Copy the navigator module from core and make your changes and it will replace the core module during build.