Problem:
Run into a ionic bug https://github.com/ionic-team/ionic/issues/12072 in 3.8.
However, solution mentioned not work.
Fix related released in 4.x and I would like to apply it in current project.
Objective:
Apply / copy code fix to local project
Make ionic a local module to be install instead of official source.
Other uses “npm install” would install the modified node module after pull source
Other Solution:
Make a hook copy the fix each time building the project by replacing line.
But risk that any mis-replace would crash the project.
Is there a official / recommended way to modify ionic?
(not upgrading ionic)
Apllying code patches from Ionic 4 to Ionic 3 will not be easy, they are really different in the code itself. Just the API the developer uses is similar.
If you just want to fix the problem in 3.x yourself: Fork the ionic-v3 repository that has this code, create a new branch based on the version tag you are using, fix the bug, install from your branch (npm can install from GitHub directly), done.