chore: add module concatenation hint (#2503)

Allow Webpack to process this file as an ES Module, which allows
concatenating using ModuleConcatenationPlugin, resulting in a slightly
smaller bundle and removes the overhead of a runtime `require()`.

The export default null will get optimized away during tree-shaking.
This commit is contained in:
Matthew Pietz
2018-09-14 10:33:47 -07:00
committed by Haoqun Jiang
parent c46d9cf1d2
commit 09305db48f

View File

@@ -6,3 +6,6 @@ if (typeof window !== 'undefined') {
__webpack_public_path__ = i[1] // eslint-disable-line
}
}
// Indicate to webpack that this file can be concatenated
export default null