webpack freelancing log book (week 10–11)


Mostly fixing bugs with Scope Hoisting…

Especially the variable renaming has a few edge case that need to be considered. Here are some examples:

import { property } from "other-module"
const { thing, property: [ thing2 ] } = { thing: 1, property };
export { thing, thing2 }

After renaming:

const { thing: module_thing, property: [ module_thing2 ] } =
{ thing: 1, property: other_module_property };

I also investigated in a chrome issue with break points in eval wrapped SourceMaps: https://bugs.chromium.org/p/chromium/issues/detail?id=459499

There is a workaround for this issue, which is now integrated into webpack. This should allow to use eval-cheap-module-source-map again… Note that the eval variant is faster on incremental build.

I revisited the chunk graph generation algorithm. It generated too many parent-child-relationships between chunks. This may hurts the optimization. The new algorithm no longer generates circular relationships.

< week 9 week 12–14 >

webpack is not backed by a big company, unlike many other big Open Source products. The development is funded by donations. Please consider donating if you depend on webpack… (Ask your boss!)

Special thanks to these sponsors: (Top 5)

Show your support

Clapping shows how much you appreciated Tobias Koppers’s story.