I've already installed jsx-html-class package via npm but i'm not sure how to modify my webpack.config.js file to make use of it.
var webpack = require("webpack");
var path = require("path");
module.exports = {
context: path.join(__dirname, "src"),
entry: "./js/index.js",
module: {
loaders: [
{
test:/\.jsx?$/,
exclude: "node_modules",
loader: "babel-loader",
query: {
presets:["react", "es2015", "stage-0"],
plugins:["transform-decorators-legacy", "jsx-html-class"]
}
}
]
},
output: {
path: __dirname + "/src/",
filename: "bundle.js"
}
};
jsx-html-class? npmjs.com/package/jsx-html-class . also.. do you really really need this? Just writeclassNamejsx-html-classand that is actually the package i downloaded. I don't absolutely need it but would prefer to have it for easier readability and now i just wanna know how just for the sake of knowing.jsx-html-classin mypluginsi get the error:Module build failed: TypeError: babel.Transformer is not a contstructor at module.exports (C:\Users\owner\Desktop\Reduxstagram\node_modules\jsx-html-class\index.js:2:10if i removejsx-html-classfrom thepluginsi get the error:Warning: Unknown DOM property class. Did you mean className?or