Website Deployment Back in the Day
More recently though, module support has been officially brought into the ECMAScript standard as of ES2015 (ES6) (see ES6 Module Reference). Given that the ES6 module syntax is an official part of the language specification and natively supported by modern browsers, it is now widely considered the preferred way of handling module functionality.
There are a few minor inconveniences the webpack bundling philosophy introduces, but they pale in comparison to the overall benefits. The only noticeable nuisance is that debugging your bundled source code is no longer as straight forward a process. As your various files are put through potentially several different processes: combination, transpilation, minification, etc. the final output is not one that lends itself to readability or debugging. Fortunately a solution exists for this issue: source map files. You have the ability to generate a source file map during the webpack build process that will allow browsers and IDE’s to translate the transformed code back to its original state. Another consideration is that this bundling model does not lend itself towards partial deployments or small hotfixes. Given the dicey nature of partial deployments to begin with, this restriction could be viewed as a blessing in disguise.
Module bundlers such as webpack provide tremendous potential for facilitating modern, flexible web application development. Building your next web application with these sort of tools in mind is likely to improve its overall quality and provide for much greater maintainability down the line.
Now, a question for you: Have you used Webpack before? And if so, what has your experience been like?
Thanks for reading! We hope you found this blog post to be useful. Do let us know if you have any questions or topic ideas related to BI, analytics, the cloud, machine learning, SQL Server, (Star Wars), or anything else of the like that you’d like us to write about. Simply leave us a comment below, and we’ll see what we can do!
Keep your data analytics sharp by subscribing to our mailing list!
Get fresh Key2 content around Business Intelligence, Data Warehousing, Analytics, and more delivered right to your inbox!
Key2 Consulting is a data warehousing and business intelligence company located in Atlanta, Georgia. We create and deliver custom data warehouse solutions, business intelligence solutions, and custom applications.