insin / babel-plugin-react-html-attrs

Babel plugin which transforms HTML and SVG attributes on JSX host elements into React-compatible attributes
https://astexplorer.net/#/gist/0008d677e8156dab437be51d1fee1757/latest
MIT License
177 stars 8 forks source link

The plugin "react-html-attrs" didn't export a Plugin instance while parsing file #13

Closed atalapov closed 4 years ago

atalapov commented 5 years ago

.package.json

"devDependencies": { "@babel/plugin-transform-react-inline-elements": "^7.2.0", "autoprefixer": "^9.0.1", "babel-core": "^6.26.3", "babel-loader": "^8.0.4", "babel-plugin-react-html-attrs": "^2.1.0", "babel-preset-react": "^6.24.1", "babelify": "^6.1.2", "browserify": "^16.2.3", "envify": "^4.1.0", "grunt": "^1.0.3", "grunt-browser-sync": "^2.2.0", "grunt-browserify": "^5.3.0", "grunt-contrib-clean": "^1.1.0", "grunt-contrib-concat": "^1.0.1", "grunt-contrib-copy": "^1.0.0", "grunt-contrib-cssmin": "^2.2.1", "grunt-contrib-imagemin": "^3.1.0", "grunt-contrib-rename": "0.2.0", "grunt-contrib-uglify": "^3.3.0", "grunt-contrib-watch": "^1.1.0", "grunt-neuter": "^0.6.0", "grunt-postcss": "^0.9.0", "grunt-react": "^0.12.3", "grunt-sass": "3.0.1", "grunt-shell": "^2.1.0", "load-grunt-tasks": "^4.0.0", "node-sass": "^4.9.2", "postcss-flexbugs-fixes": "^4.0.0", "react-dom": "^16.6.3", "react-redux": "^5.1.1", "reactify": "^1.1.1", "redux": "^4.0.1", "time-grunt": "^1.4.0" }, "dependencies": { "react": "^16.6.3" }

.babelrc

{ "plugins": [ "react-html-attrs", "@babel/plugin-transform-react-inline-elements" ] }

atalapov commented 5 years ago

How I can fix it ?