Giter VIP home page Giter VIP logo

vite-plugin-react-remove-attributes's Introduction

🧬 Hello!

My name is Lambert!

I am a Frontend Developer with a passion for building intuitive and interactive user experiences. With strong skills in ReactJS, Typescript, and modern web development technologies, I am dedicated to creating high-quality applications and staying up-to-date with industry best practices.

Skills

  • ReactJS
  • Typescript
  • HTML
  • CSS
  • JavaScript

vite-plugin-react-remove-attributes's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vite-plugin-react-remove-attributes's Issues

Think your ESM exports are broken

your dist/index.mjs file exports this:

export {
  VitePluginReactRemoveAttributes as default
};

When I import the package, I get this:

import plugin from 'vite-plugin-react-remove-attributes';
console.log(plugin)

// outputs:
{                                                                                                                                                                 
  default: [Function: VitePluginReactRemoveAttributes]
}

Throwing Sourcemap error

I tried this plugin out today and it seems to work well, but I'm seeing the following error in terminal when it runs:

rendering chunks (1)...Sourcemap is likely to be incorrect: a plugin (vite-plugin-react-remove-attributes) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help
Sourcemap is likely to be incorrect: a plugin (vite-plugin-react-remove-attributes) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help
Sourcemap is likely to be incorrect: a plugin (vite-plugin-react-remove-attributes) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help
Sourcemap is likely to be incorrect: a plugin (vite-plugin-react-remove-attributes) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help
Sourcemap is likely to be incorrect: a plugin (vite-plugin-react-remove-attributes) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help
Sourcemap is likely to be incorrect: a plugin (vite-plugin-react-remove-attributes) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help
Sourcemap is likely to be incorrect: a plugin (vite-plugin-react-remove-attributes) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help
Sourcemap is likely to be incorrect: a plugin (vite-plugin-react-remove-attributes) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help
Sourcemap is likely to be incorrect: a plugin (vite-plugin-react-remove-attributes) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help
rendering chunks (2)...Sourcemap is likely to be incorrect: a plugin (vite-plugin-react-remove-attributes) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help
Sourcemap is likely to be incorrect: a plugin (vite-plugin-react-remove-attributes) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help
Sourcemap is likely to be incorrect: a plugin (vite-plugin-react-remove-attributes) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help
Sourcemap is likely to be incorrect: a plugin (vite-plugin-react-remove-attributes) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help
Sourcemap is likely to be incorrect: a plugin (vite-plugin-react-remove-attributes) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help
Sourcemap is likely to be incorrect: a plugin (vite-plugin-react-remove-attributes) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help
Sourcemap is likely to be incorrect: a plugin (vite-plugin-react-remove-attributes) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help
Sourcemap is likely to be incorrect: a plugin (vite-plugin-react-remove-attributes) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help
Sourcemap is likely to be incorrect: a plugin (vite-plugin-react-remove-attributes) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help

Did some quick Googling and found this, which may or may not be helpful? vitejs/vite#4939

Update peerDependencies to Vite v3

Hi!

First of all, great plugin, really helped me out. Unfortunately, due to the fact that it is using ^2.4.4 version of Vite, projects using Vite 3 aren't compatible and require installing using --force flag.

Please update peerDependencies to allow Vite 3.

Get rid of `react` in name

Hi @l-mbert and thank you for your plugin, it works perfectly. I have small suggestion for naming improvement, I've used it with Vue 2 + jsx and it has working without any problems. So firstly I was confused about react in the name of plugin and have tried other solutions but then I've checked the code and found that there is not any reference to react engine or deps or smth like this and this plugin could work with any implementation of jsx.
So right now it's a little weird that vue setup uses some react library and maybe would be better to rename/recreate project with name like: vite-plugin-jsx-remove-attributes or vite-plugin-jsx-remove-html-attributes. What do you think?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.