Skip to content

Commit e5d8ed4

Browse files
authored
feat: refine node api (#1395)
- fix($core): markdown slot doesnβ€˜t work. (regression of c85f62d) - docs: fresh Node.JS API. - test: official plugins.
1 parent 7148df2 commit e5d8ed4

File tree

180 files changed

+3886
-3742
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

180 files changed

+3886
-3742
lines changed

β€Žbabel.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ module.exports = {
33
'test': {
44
'presets': [
55
['@babel/preset-env', { 'targets': { 'node': 'current' }}]
6+
],
7+
'plugins': [
8+
'@babel/plugin-syntax-dynamic-import'
69
]
710
}
811
}

β€Žpackage.json

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"remote-version": "node scripts/remote-version.js",
1414
"dev": "yarn tsc && yarn workspace docs dev",
1515
"build": "yarn tsc && yarn workspace docs build",
16+
"view-info": "yarn tsc && yarn workspace docs view-info",
1617
"show-help": "yarn workspace docs show-help",
1718
"dev:blog": "yarn tsc && yarn workspace blog dev",
1819
"build:blog": "yarn tsc && yarn workspace blog build",

β€Žpackages/@vuepress/core/lib/build.js

-197
This file was deleted.

β€Žpackages/@vuepress/core/lib/app/dataMixin.js β€Žpackages/@vuepress/core/lib/client/dataMixin.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/* global VUEPRESS_TEMP_PATH */
22

3-
import Vue from 'vue'
3+
import GLobalVue from 'vue'
44

5-
export default function dataMixin (I18n, siteData) {
5+
export default function dataMixin (I18n, siteData, Vue = GLobalVue) {
66
prepare(siteData)
77
Vue.$vuepress.$set('siteData', siteData)
88

0 commit comments

Comments
Β (0)