Skip to content

Commit 342438f

Browse files
committed
fix: build config
1 parent 9e824a4 commit 342438f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Diff for: build/build-ssr.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ rollup
99
plugins: [
1010
async(),
1111
replace({
12-
__VERSION__: process.env.VERSION || require('../package.json').version
12+
__VERSION__: process.env.VERSION || require('../package.json').version,
13+
'process.env.SSR': true
1314
}),
1415
buble({
1516
transforms: {

Diff for: build/build.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ var build = function (opts) {
1818
commonjs(),
1919
nodeResolve(),
2020
replace({
21-
__VERSION__: version
21+
__VERSION__: version,
22+
'process.env.SSR': false
2223
})
2324
])
2425
})

0 commit comments

Comments
 (0)