Nuxt.js: Remove data-test (ids) does not work on client bundle

Created on 15 Mar 2019  路  6Comments  路  Source: nuxt/nuxt.js

Version

v2.4.5

Reproduction link

https://github.com/iskanderbroere/removedatatestids

Steps to reproduce

Steps to reproduce

What is expected ?

Data test (id) attribute is removed in client bundle/

What is actually happening?

The attributes remain on the element.

Additional comments?

babel extend build preTransformNode

This bug report is available on Nuxt community (#c8842)
bug-report

Most helpful comment

I鈥檒l have a look tmr.

All 6 comments

No bug but a question :man_shrugging:

However, there u go https://github.com/iskanderbroere/removedatatestids/pull/1

thanks for the explanation!

  • does this mean https://nuxtjs.org/api/configuration-build#loaders-in-extend is incorrect?
  • are the default options merged with build.loaders? i think it would be nice to document this behavior.
  • has this behavior changed recently? the links i put in reference indicate this worked at some point, ill investigate tomorrow
    i can create a pull request in the docs repo if wanted.

this issue only happens in nuxt >2.4, when i revert to 2.3.4 it works as i had initially expected it to.
https://github.com/iskanderbroere/removedatatestids/tree/nuxt2.3
can we document this change or fix it?
please re-open @manniL

does this mean nuxtjs.org/api/configuration-build#loaders-in-extend is incorrect?

Not necessarily, but it's easier now via build.loaders.vue

cc @clarkdo, maybe you know what's going wrong between v2.3 and v2.4 here :relaxed:

I鈥檒l have a look tmr.

Thanks for the effort guys

Was this page helpful?
0 / 5 - 0 ratings

Related issues

uptownhr picture uptownhr  路  3Comments

pehbehbeh picture pehbehbeh  路  3Comments

mattdharmon picture mattdharmon  路  3Comments

gary149 picture gary149  路  3Comments

jaredreich picture jaredreich  路  3Comments