You can avoid changing files by adding paths to your requirejs, which is added just above your "some_javascript_file" define statement.
requirejs.config({
paths: {
"moment": "[theme_something]/moment"
}
});
You can avoid changing files by adding paths to your requirejs, which is added just above your "some_javascript_file" define statement.
requirejs.config({
paths: {
"moment": "[theme_something]/moment"
}
});