Skip to content

Commit 7bc5f51

Browse files
committed
chore: remove Vue component script prototype extraction (#57)
chore: remove Vue component prototype extractor doc: update CHANGELOG.md
1 parent f4b005e commit 7bc5f51

File tree

4 files changed

+3
-96
lines changed

4 files changed

+3
-96
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
- Removed `followImports` config (#53)
88
- Removed configuration system (#53)
99
- Removed source transformation (Babel) (#55)
10+
- Removed (#57)

__tests__/vueComponentPrototypeExtractor.test.js

Lines changed: 0 additions & 47 deletions
This file was deleted.

index.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,21 @@ const path = require('path')
22
const compiler = require('vue-template-compiler')
33

44
require('./lib/requireHookForVue')
5-
const extractVueComponentPrototype = require('./lib/vueComponentPrototypeExtractor')
65
const vueTag = require('./lib/vueTag')
76
const docletHandlers = require('./lib/docletHandlers')
87

9-
const allVueComponentPrototypes = {}
10-
118
exports.handlers = {
129
beforeParse (e) {
1310
if (/\.vue$/.test(e.filename)) {
1411
const parsedComponent = compiler.parseComponent(e.source)
15-
const source = parsedComponent.script ? parsedComponent.script.content : ''
1612

17-
e.source = source
18-
allVueComponentPrototypes[e.filename] = extractVueComponentPrototype(source, e.filename)
13+
e.source = parsedComponent.script ? parsedComponent.script.content : ''
1914
}
2015
},
2116
newDoclet (e) {
2217
if (e.doclet.scope === 'vue') {
2318
const file = path.join(e.doclet.meta.path, e.doclet.meta.filename)
24-
const vueComponentPrototype = allVueComponentPrototypes[file]
19+
const vueComponentPrototype = null //TODO: to be removed
2520

2621
/*
2722
* Dirty tricks, only supports default template at the moment.

lib/vueComponentPrototypeExtractor.js

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)