Respect formatting/code style
mikkotikkanen opened this issue · 1 comments
mikkotikkanen commented
Fe. if I have a long list of shims...
require.config({
paths: {},
shim: {
module1: { deps: ["jquery"], exports: "$.fn.popover" },
module2: { deps: ["jquery"], exports: "$.fn.popover" },
module3: { deps: ["jquery"], exports: "$.fn.popover" },
...
}
When I run grunt bower
, this will be munged into...
require.config({
paths: {},
shim: {
module1: {
deps: [
"jquery"
],
exports: "$.fn.popover"
},
module2: {
deps: [
"jquery"
],
exports: "$.fn.popover"
},
module3: {
deps: [
"jquery"
],
exports: "$.fn.popover"
},
...
}
...which in this case then doesn't match the defined code style.
It would be awesome if previously shimmed modules are preset, to respect the formatting they might have.
I mean it doesn't even add shims so why reformat it to some arbitrary format?
mikkotikkanen commented
Seems to be problem with bower-requirejs instead, posted the issue there.