l-mbert / vite-plugin-react-remove-attributes Goto Github PK
View Code? Open in Web Editor NEWA Vite-Plugin for React to remove Attributes on bundling
A Vite-Plugin for React to remove Attributes on bundling
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.
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
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?
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]
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.