Forum Discussion
I have a project called Common, which has various methods in a singleton class called Settings. The module export is defined as module.exports.Settings = Settings;
In another project called Dashboard, I import Common. So that I can access the methods that I need via var settings = Common.Settings.getInstance(); settings.Wait();
Yes this is how I have it now. The issue is that across the projects that import that class changes have been implemented to the imported versions and those changes are not updating original. So as I look through this project I see redundant functionally implemented various different ways across all the projects in the imported versions of the class. So would it be posable to have the classes global so they do not have to have to have imported versions to start with?
Related Content
- 3 years ago
- 3 years ago