This repository was archived by the owner on Apr 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
This repository was archived by the owner on Apr 29, 2021. It is now read-only.
Status of this project #97
Copy link
Copy link
Open
Description
I'd love to try using this plugin to see how it impacts the performance of our react app.
I tried throwing it into my react 16.8 app (which was recently upgraded from 15) and got this error:
https://user-images.githubusercontent.com/539816/66258066-78bf6380-e766-11e9-950c-8f20a0cfac0a.png
I think it's failing as soon as it hits some jsx.
So it looks like this project is not ready for prime time - is there some new technology that makes using iDOM+jsx not very fruitful endeavor?
Note that I'm using CRA+craco
Nowhere in my codebase do I read the property "imports"
This is my .babelrc
{
"presets": [
"react-app"
],
"plugins": [
"transform-incremental-dom",
// should already be included but was having issues with scope macro
// "macros",
// do expressions are cool, but have issues with using types
// "@babel/plugin-proposal-do-expressions",
// prefer to use window.safeGet (hand written in polyfills.js)
"@babel/plugin-proposal-optional-chaining",
// foo.bar.baz ?? 'fallback' IS better than: foo.bar.baz ? foo.bar.baz : 'fallback'
"@babel/plugin-proposal-nullish-coalescing-operator",
// I'd love to be able to see the lint number of <div's in the dom... but this just doesn't seem to work...
"@babel/plugin-transform-react-jsx-source"
// CRA actually includes this by default:
// [
// "babel-plugin-named-asset-import",
// {
// "loaderMap": {
// "svg": {
// "ReactComponent": "@svgr/webpack?-svgo,+titleProp,+ref![path]"
// }
// }
// }
// ]
]
}
I would share my app.jsx but that's proprietary company source
Metadata
Metadata
Assignees
Labels
No labels