Skip to content
This repository was archived by the owner on Aug 16, 2022. It is now read-only.

Commit 0ba6e8b

Browse files
committed
fix: expect moduleIdentifier in assemble step
1 parent 043f54b commit 0ba6e8b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ declare module VueComponentCompiler {
160160
normalizeComponent?: string // vue-component-compiler/src/normalize-component.js
161161
}
162162
scopeId: string // same as scopeId of style compiler.
163-
moduleIdentifier?: string // autogenerated
163+
moduleIdentifier?: string // ~ used in SSR
164164
isHot?: boolean // false
165165
isServer?: boolean // false
166166
isProduction?: boolean // true

src/assemble.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module.exports = function assemble (source, filename, config) {
3333
normalizeComponent: 'vue-component-compiler/src/runtime/normalize-component'
3434
},
3535
scopeId: null,
36-
moduleIdentifier: config.moduleIdentifier || hash(_s({ filename, config })), // require for server. TODO: verify this is correct.
36+
moduleIdentifier: null,
3737
isHot: false,
3838
isServer: false,
3939
isProduction: true,

0 commit comments

Comments
 (0)