Nuxt.js: Nuxt custom babel plugin not working

Created on 25 Mar 2019  路  2Comments  路  Source: nuxt/nuxt.js

Version

v2.5.1

Reproduction link

https://codesandbox.io/s/yw0k156zzz

Steps to reproduce

I forked this working link : https://codesandbox.io/s/18j0jkn72q then added the plugin babel-plugin-jsx-remove-data-test-id from here https://github.com/coderas/babel-plugin-jsx-remove-data-test-id
I also added data-test-id="test1" on one of the elements displayed.

What is expected ?

The plugin should strip out this attribute.

What is actually happening?

The plugin doesn't actually work.

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

All 2 comments

@Kleemer Happy to see you found my example 鈽猴笍

I'm not sure if the babel plugin you mentioned works with normal vue templates. Probably not as it seems.

You might be interested in #5250

Closing here as it's no direct Nuxt issue

Thank you for the quick answer and the help ! This is what I was looking for.
Keep up the awesome work !! 馃槃

Was this page helpful?
0 / 5 - 0 ratings

Related issues

surmon-china picture surmon-china  路  3Comments

vadimsg picture vadimsg  路  3Comments

pehbehbeh picture pehbehbeh  路  3Comments

shyamchandranmec picture shyamchandranmec  路  3Comments

gary149 picture gary149  路  3Comments