Comments (9)
Hello @GustavoOrGuzz
We released the [email protected]
and [email protected]
packages to address this issue.
Please test them and share your results.
from devextreme.
I was doing some test with the 23.1.2.beta. I created a basic example with just with one button in the app.component and showing an alert with the text "Hello world", following the instructions in the tutorial: https://js.devexpress.com/Documentation/Guide/Angular_Components/Getting_Started/Create_a_DevExtreme_Application/.
Using webpack the results are:
√ Compiled successfully.
✔ Browser application bundle generation complete.
Initial Chunk Files | Names | Raw Size
runtime.js | runtime | 6.52 kB |
main.js | main | 6.44 kB |
3 unchanged chunks
Build at: 2023-05-27T18:59:49.547Z - Hash: 4019ea560ed9cfca - Time: 581ms
√ Compiled successfully.
Changing the angular.json for using vite ( "builder": "@angular-devkit/build-angular:browser-esbuild",) the results are:
Initial Chunk Files | Names | Raw Size
main.js | main | 14.73 MB |
styles.css | styles | 834.88 kB |
polyfills.js | polyfills | 82.88 kB |
| Initial Total | 15.63 MB
Lazy Chunk Files | Names | Raw Size
chunk-RXUGBNBB.js | - | 2.66 kB |
Application bundle generation complete. [2.646 seconds]
What are the reasons to increase nearly 5 times the time of compilation ?
Thanks.
from devextreme.
Hi @JSoutoP
We didn't perform specific customizations for the Vite
build. If this behavior affects your application development, please raise a ticket in our Support Center: https://supportcenter.devexpress.com/ticket/create
Our support team will perform further research.
from devextreme.
Hi,
I've already raised for a ticket but they tell me I need a valid license. I use Devextreme for teaching and personal purposes.
Thanks.
from devextreme.
okay @JSoutoP . I didn't reproduce the issue with a bundle size.
Please modify my example to demonstrate it or send one for testing.
test-app.zip
from devextreme.
Hi,
with Vite enabled in the angular.json "builder": "@angular-devkit/build-angular:browser-esbuild",
Application bundle generation complete. [1.379 seconds]
Reloading client(s)...
Initial Chunk Files | Names | Raw Size
main.js | main | 5.44 MB |
styles.css | styles | 1.04 MB |
polyfills.js | polyfills | 82.88 kB |
| Initial Total | 6.56 MB
Lazy Chunk Files | Names | Raw Size
chunk-2VB6XM3M.js | - | 1.05 kB |
Application bundle generation complete. [1.281 seconds]
Reloading client(s)...
Initial Chunk Files | Names | Raw Size
main.js | main | 5.44 MB |
styles.css | styles | 1.04 MB |
polyfills.js | polyfills | 82.88 kB |
| Initial Total | 6.56 MB
Lazy Chunk Files | Names | Raw Size
chunk-2VB6XM3M.js | - | 1.05 kB |
Application bundle generation complete. [1.476 seconds]
Around 1.4 seconds in generate new bundle.
With webpack:
√ Compiled successfully.
✔ Browser application bundle generation complete.
Initial Chunk Files | Names | Raw Size
main.js | main | 7.96 kB |
runtime.js | runtime | 6.51 kB |
3 unchanged chunks
Build at: 2023-06-12T09:15:49.266Z - Hash: 6492250a2f4effcb - Time: 733ms
√ Compiled successfully.
✔ Browser application bundle generation complete.
Initial Chunk Files | Names | Raw Size
main.js | main | 7.96 kB |
runtime.js | runtime | 6.51 kB |
3 unchanged chunks
Build at: 2023-06-12T09:15:53.284Z - Hash: a39bf2a0390ad5e8 - Time: 527ms
Around 0.5 seconds.
Thanks.
from devextreme.
@JSoutoP
I tested this option but didn't receive this file size. Please attach an example for further testing.
from devextreme.
The problem is not the file size. The problem it's the time of bundle creation. Vite is very fast, but with the Devextreme components you can't appreciate this increase in velocity. I dont know the reason.
Thanks
from devextreme.
Thank you for the clarification @JSoutoP . I re-tested this part and see that a new build configuration takes much time to perform tree shaking if short paths are used to import our modules.
Try using long paths across all application: https://js.devexpress.com/Documentation/Guide/Angular_Components/Common_Features/Tree_Shaking/
from devextreme.
Related Issues (20)
- TreeList - Editing Form - Form not extended when the editors extends HOT 1
- ChainAlert: npm package release (21.2.5) has no matching tag in this repo HOT 2
- OnRowPrepared is being called repeatedly to the point of crashing the page. HOT 1
- Dropdown multiple selection css is broken HOT 1
- Problem With CustomStore Remove HOT 1
- Action Required: Fix Renovate Configuration
- improve typescript typing HOT 3
- popup elementAttr deprecation HOT 2
- dx.all.js:9 [Violation] 'setTimeout' handler took HOT 2
- DataGrid RowFilter OData Lookup Bug HOT 3
- [feat] Popup - add maximize/restore and collapse/expand buttons in toolbar HOT 1
- [feat] TreeList - export to excel HOT 1
- [feat] DateBox - allow selecting ranges HOT 1
- [Feat] DataGrid - allow user input in pager size selector HOT 1
- Html Editor Predefined Items are missing in release version 23.1.2-alpha-23114-0308 HOT 2
- Changes to columnResizingMode in code is ignored if localstorage is used HOT 2
- DateRangeBox for zoom level year is glitchy HOT 2
- Overwriting default DataGrid settings in FileManger (React) HOT 2
- FileManager: change selection event raised on dir change is indistinguishable from the human-made one HOT 2
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 devextreme.