Fix issue with requirejs loader plugin and packages reference resolving