fix issue with requirejs loader plugin and packages