Comments (4)
Since v0.6.2 I will add the package precompiled to es5 (not minified)
It uses commonjs2 format, so the import of the package have to be like following:
import Flatten from "flatten-js/dist/flatten.commonjs2"
Then you can build you app in production.
No need to switch off Uglify plugin anymore.
See this demo project and here it is live.
from flatten-js.
Yes, I know about this recommendation.
When I built my applications, I went to webpack.config.prod.js in node_modules/react-scripts/config/
and commented out Uglify plugin.
Till now I am running non-minified and waiting for the better plugin that will support ES6.
Is this workaround acceptable for your project (assuming you also use create-react-app)?
from flatten-js.
Thanks for sharing your approach. I considered copying the code into my source code, but that's just too messy. Your suggestion is better and is fine for now: I'm still in development and file size is not my main concern, as I'm planning to release it as a React app wrapped into a native mobile app.
Fingers crossed a better or updated plugin will be available in the near future!
from flatten-js.
This request is outdated
from flatten-js.
Related Issues (20)
- JSCAD integration HOT 1
- Floating point issue
- Incorrect unify result #55 HOT 6
- Bad performance with boolean operations HOT 2
- Typings exported incorrectly HOT 1
- Intersect ray with ray or line HOT 1
- Support stroke-dasharray HOT 4
- Cannot figure out a workaround for INFINITE LOOP while unifying polygons HOT 4
- Add method to easy check equal polygons HOT 9
- Incorrect return type on `Relations.relate`
- Infinite Loop when intersecting Polygons (v1.3.4) HOT 7
- fillOpacity is not being used when applying svg() on Box type ( translated to Rect ) HOT 1
- IntervalTree search is a bottleneck HOT 14
- feature request: construct Arc from the parameters used in SVG HOT 3
- v1.4 Relations.intersect() doesn't allow Polygon argument HOT 3
- ray and segment intersect HOT 5
- HELP - What is the best way to create parallel segments ? HOT 3
- Adding Point to Vector HOT 3
- Errors export HOT 2
- Cannot cut polygon with MultiLine HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flatten-js.