File tree Expand file tree Collapse file tree 2 files changed +14
-13
lines changed Expand file tree Collapse file tree 2 files changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import * as globby from 'globby'
10
10
import createDebug from 'debug'
11
11
12
12
import builtInTransformations from '../transformations'
13
+ import { excludedTransformations } from "../transformations"
13
14
import vueTransformations from '../vue-transformations'
14
15
import runTransformation from '../src/runTransformation'
15
16
@@ -66,19 +67,6 @@ async function main() {
66
67
}
67
68
68
69
if ( runAllTransformation ) {
69
- const excludedTransformations = [
70
- 'define-component' ,
71
- 'new-vue-to-create-app' ,
72
- 'remove-contextual-h-from-render' ,
73
- 'remove-production-tip' ,
74
- 'remove-trivial-root' ,
75
- 'remove-vue-use' ,
76
- 'root-prop-to-use' ,
77
- 'vue-as-namespace-import' ,
78
- 'add-import' ,
79
- 'remove-extraneous-import'
80
- ]
81
-
82
70
for ( let key in builtInTransformations ) {
83
71
if ( ! excludedTransformations . includes ( key ) ) {
84
72
processTransformation ( resolvedPaths , key , builtInTransformations [ key ] )
Original file line number Diff line number Diff line change @@ -37,4 +37,17 @@ const transformationMap: {
37
37
'remove-extraneous-import' : require ( './remove-extraneous-import' ) ,
38
38
}
39
39
40
+ export const excludedTransformations = [
41
+ 'define-component' ,
42
+ 'new-vue-to-create-app' ,
43
+ 'remove-contextual-h-from-render' ,
44
+ 'remove-production-tip' ,
45
+ 'remove-trivial-root' ,
46
+ 'remove-vue-use' ,
47
+ 'root-prop-to-use' ,
48
+ 'vue-as-namespace-import' ,
49
+ 'add-import' ,
50
+ 'remove-extraneous-import'
51
+ ]
52
+
40
53
export default transformationMap
You can’t perform that action at this time.
0 commit comments