Reputation: 263
i am working on a REACT web application. I am using react-datasheet library and installed in using NPM. Now to make it support IE11, i have done some changes in the javascript file installed by NPM. This works in my local machine but what is the best way to sustain the changes during deployment.
One way is to add all the JS files in the SRC folder but is that the best approach. All i did is added one handler to support paste operation in IE11. Is there a way to handle the scenario without changing the code in the npm_module folder?
Upvotes: 0
Views: 63
Reputation: 3886
You will have to remove the edited particular package out of the node_modules folder and make it part of your src folder. In addition to that you will also have to change the import locations to point to the folder in the src folder.
Upvotes: 1