I'm attempting to load the Highcharts library using a shim in RequireJS. However, when Highcharts loads, it throws an exception because it can't access the jQuery methods it depends on. The require config looks like so: require.config({...
I have a single page Marionette app built on RequireJS which needs to support translations. My goal is to have a dictionary file for each language, and based on the logged in user's configuration, load the relevant file. Since most of the users...
I have 2 types of Modules: Require.js Main File: require.config({ baseUrl: "/another/path", paths: { "some": "some/v1.0" }, waitSeconds: 15, locale: "fr-fr" }); req...
I would like to ignore the use of a require js plugin when I use the optimizer define(["css!styles.css"]) This always gives me this error Cannot read property 'normalize' of undefined. I've set this options to the require optim...
I am trying to remove copyright comments from my optimized script files. We are using RequireJS with the default UglifierJS. I looked into Uglifier which in itself has a flag called -nc or --no-comments, but it does not seem like RequireJS lets you s...
Short and seemingly stupid question because so simple and you'd think ubiquitous: has anyone gotten any kind of code coverage to work within a RequireJS front-end project (non NodeJS)? Seems like a stupid question because of the prevalence of TD...
First a bit of history, we have an engine which is made up of many javascript files which are essentially modules. These modules return a single class that are assigned to the global scope, although under a specified namespace. The engine itself is...
I've started to play with require js on a dummy project. I now want to use the r.js script to build my project for production. The context is this: Main file called start.js is: require([/* some stuff */], function (){ /* app logic */ });...
I have a number of jQuery plugins that I would like to load using the AMD pattern in TypeScript. For example, I might have this structure: /lib/jquery.myplugin.js /app.ts The plugin simply extends jQuery. It provides no new top-level functions or...
I am upgrading a project from Dojo 1.6.1 using AMD and RequireJS to Dojo 1.7.1 with its new AMD loader. I have to deal with old JavaScript files, not written as AMD modules, and have to load them in the correct order. Before I used the RequireJS ord...
©2020 All rights reserved.