Discover how Parcel 2’s features compare to Parcel 1 with this focused quiz on bundling, configuration, plugin systems, and development experience. Assess your understanding of the latest changes and advancements between Parcel 2 and its predecessor, ideal for those interested in modern web bundling tools.
Which statement best describes the shift in configuration between Parcel 1 and Parcel 2 when starting a new project?
Explanation: Parcel 2 introduces a dedicated configuration file to enable more customization, whereas Parcel 1 emphasized zero-configuration by default. This provides developers with greater control and flexibility in Parcel 2. The other options are incorrect: Parcel 1 did not mandate YAML, both versions have some support for environment variables, and Parcel 2 did not remove configuration capabilities but expanded them.
How has the plugin system changed from Parcel 1 to Parcel 2 to improve extensibility?
Explanation: Parcel 2’s modular plugin architecture enables easier extension and customization without modifying the core system, whereas Parcel 1 relied on a limited set of built-in plugins. The claim that Parcel 1 was more modular is incorrect, and Parcel 2 did not abandon plugin support. Both versions allow multiple plugins, so the idea of supporting only one isn’t accurate.
In terms of supporting monorepo structures and multiple build targets, how does Parcel 2 improve over Parcel 1?
Explanation: Parcel 2 allows building for multiple targets such as browsers, modules, and more, simplifying workflows for complex projects, especially monorepos. In contrast, Parcel 1’s support for multi-target builds was limited and unofficial. The other options misrepresent the historic support in Parcel 1, or wrongly suggest Parcel 2 lost features.
What feature related to development experience has Parcel 2 improved compared to Parcel 1, especially for JavaScript and React projects?
Explanation: Parcel 2’s integrated fast refresh provides more seamless hot module replacement, allowing UI changes to update instantly without losing state. Parcel 1 did not support fast refresh by default. The notion that Parcel 2 regressed to full page reloads is incorrect, and both versions include development server features, contrary to one option.
Regarding asset handling, how does Parcel 2 extend support for various file types compared to Parcel 1?
Explanation: Parcel 2 enables developers to define how new file types are handled using its plugin system, expanding beyond the more restrictive built-in pipelines of Parcel 1. Parcel 1 didn’t allow unlimited file types without workarounds, and Parcel 2 does not restrict asset types. The last option incorrectly implies both versions are severely limited in asset processing.