From RequireJS’s documentation (1.2.1), it has an example of simple name-value pair with no dependencies.
//Inside file my/shirt.js:
define({
color: "black",
size: "unisize"
});
It doesn’t have a return statement, so it doesn’t look like any other module could get the values.
How would I use this or access the values in here?
If you were to include that module inside of another you would expose it’s contents:
my/shirt.js:
shirtstore.js:
Basically the contents of shirt.js become an object that you get access to when declaring that as a dependency of another module.