Open KaKi87 opened 3 years ago
The deindent step mentioned in the rollup issue should happen somewhere here: https://github.com/parcel-bundler/parcel/blob/49ac217507d5914a2e38ca402593d26527cdb673/packages/transformers/vue/src/VueTransformer.js#L218-L246
🐛 bug report
The pug transformer doesn't allow the root DOM element to be indented.
🎛 Configuration (.babelrc, package.json, cli command)
package.json
🤔 Expected Behavior
The following pug code would be valid :
😯 Current Behavior
Only the following pug code is valid :
💁 Possible Solution
Trim the template content before passing it to the pug transformer.
Related pull request on Rollup : https://github.com/vuejs/rollup-plugin-vue/pull/89
🔦 Context
I am trying to make the code more readable by indenting the root element as I do with CSS & JS.
Related issue on Rollup : https://github.com/vuejs/rollup-plugin-vue/issues/86
💻 Code Sample
Cf. current behavior section
🌍 Your Environment
Thanks !