Skip to content

Commit 2bc880d

Browse files
committed
fix: ssr package dep, fixed #605
1 parent b3b6116 commit 2bc880d

File tree

5 files changed

+6
-126
lines changed

5 files changed

+6
-126
lines changed

build/build.js

+5-7
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@ const isProd = process.env.NODE_ENV === 'production'
88
const version = process.env.VERSION || require('../package.json').version
99
const chokidar = require('chokidar')
1010
const path = require('path')
11-
const json = require('rollup-plugin-json')
1211

13-
const build = function(opts) {
12+
const build = function (opts) {
1413
rollup
1514
.rollup({
1615
input: opts.input,
1716
plugins: (opts.plugins || []).concat([
18-
json(),
1917
buble(),
2018
commonjs(),
2119
nodeResolve(),
@@ -25,7 +23,7 @@ const build = function(opts) {
2523
})
2624
])
2725
})
28-
.then(function(bundle) {
26+
.then(function (bundle) {
2927
var dest = 'lib/' + (opts.output || opts.input)
3028

3129
console.log(dest)
@@ -35,11 +33,11 @@ const build = function(opts) {
3533
strict: false
3634
})
3735
})
38-
.catch(function(err) {
36+
.catch(function (err) {
3937
console.error(err)
4038
})
4139
}
42-
const buildCore = function() {
40+
const buildCore = function () {
4341
build({
4442
input: 'src/core/index.js',
4543
output: 'docsify.js'
@@ -53,7 +51,7 @@ const buildCore = function() {
5351
})
5452
}
5553
}
56-
const buildAllPlugin = function() {
54+
const buildAllPlugin = function () {
5755
var plugins = [
5856
{name: 'search', input: 'search/index.js'},
5957
{name: 'ga', input: 'ga.js'},

package-lock.json

-116
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565
"rollup-plugin-async": "^1.2.0",
6666
"rollup-plugin-buble": "^0.18.0",
6767
"rollup-plugin-commonjs": "^8.2.6",
68-
"rollup-plugin-json": "^3.1.0",
6968
"rollup-plugin-node-resolve": "^3.0.0",
7069
"rollup-plugin-replace": "^2.0.0",
7170
"rollup-plugin-uglify": "^2.0.1",

packages/docsify-server-renderer/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
},
1717
"dependencies": {
1818
"debug": "^2.6.8",
19+
"docsify": "^4.8.0",
1920
"node-fetch": "^1.7.0",
2021
"resolve-pathname": "^2.1.0"
2122
}

src/core/config.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import {merge, hyphenate, isPrimitive, hasOwn} from './util/core'
2-
import {version as pkgVersion} from './../../package.json'
32

43
export default function () {
54
const config = merge(
@@ -65,7 +64,6 @@ export default function () {
6564
}
6665
}
6766

68-
config.version = pkgVersion
6967
window.$docsify = config
7068

7169
return config

0 commit comments

Comments
 (0)