Skip to content

Commit 1a00b4b

Browse files
committed
wip
1 parent 8255f85 commit 1a00b4b

File tree

4 files changed

+1032
-771
lines changed

4 files changed

+1032
-771
lines changed

.prettierrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ module.exports = {
55
trailingComma: 'es5',
66
semi: false,
77
singleQuote: true,
8+
endOfLine: "auto",
89
}

packages/example/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
"css-loader": "^5.0.0",
2121
"html-loader": "^1.3.2",
2222
"html-webpack-plugin": "^4.5.0",
23-
"node-sass": "^4.11.0",
23+
"sass": "^1.27.0",
2424
"sass-loader": "^10.0.4",
2525
"style-loader": "^2.0.0",
2626
"uglifyjs-webpack-plugin": "^2.1.2",
2727
"vue-loader": "^15.7.0",
2828
"vue-style-loader": "^4.1.2",
2929
"vue-template-compiler": "^2.6.10",
30-
"webpack": "^5.2.0",
31-
"webpack-cli": "^4.1.0",
30+
"webpack": "^4.44.2",
31+
"webpack-cli": "^3.3.12",
3232
"webpack-dev-server": "^3.3.1"
3333
}
3434
}

packages/vue-markdown-loader/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ import { parseFrontmatter, inferTitle, extractHeaders } from './utils'
77

88
const devCache = new LRU({ max: 1000 })
99

10-
const stringify = src =>
10+
const stringify = (src) =>
1111
JSON.stringify(src)
1212
.replace(/\u2028/g, '\\u2028')
1313
.replace(/\u2029/g, '\\u2029')
1414

15-
export default function(src) {
15+
export default function (src) {
1616
const isProd = process.env.NODE_ENV === 'production'
1717
const isServer = this.target === 'node'
1818
const options = getOptions(this) || {}
@@ -54,7 +54,7 @@ export default function(src) {
5454
const { html } = markdown.render(content, {
5555
loader,
5656
frontmatter: data,
57-
relativePath: path.resolve(sourceDir, file).replace(/\\/g, '/'),
57+
relativePath: path.resolve(sourceDir as string, file).replace(/\\/g, '/'),
5858
})
5959

6060
if (options.mode === 'raw') {

0 commit comments

Comments
 (0)