mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-26 00:59:02 -06:00
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:
committed by
Haoqun Jiang
parent
c46d9cf1d2
commit
09305db48f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user