File tree Expand file tree Collapse file tree 3 files changed +1
-29
lines changed Expand file tree Collapse file tree 3 files changed +1
-29
lines changed Original file line number Diff line number Diff line change @@ -132,11 +132,6 @@ const configs = {
132132 dst : 'PAIRMUTATORS/' ,
133133 libs : [ 'pairmutator.js' ]
134134 } ,
135- CONCURRENCY : {
136- readme : 'README_CONCURRENCY.md' ,
137- dst : 'CONCURRENCY/' ,
138- libs : [ 'concurrency.js' ]
139- } ,
140135 MCE : {
141136 readme : 'README_MCE.md' ,
142137 dst : 'MCE/' ,
Original file line number Diff line number Diff line change 1- import { isSourceModule , removeExportDefault } from '../utils'
2-
3- describe ( 'removeExportDefault' , ( ) => {
4- test ( 'Ignores normal strings' , ( ) => {
5- expect ( removeExportDefault ( 'normal string' ) ) . toEqual ( 'normal string' )
6- } )
7-
8- test ( 'Removes export default keywords and trailing spaces' , ( ) => {
9- expect ( removeExportDefault ( 'export default normal string' ) ) . toEqual ( 'normal string' )
10- } )
11- } )
1+ import { isSourceModule } from '../utils'
122
133describe ( 'isSourceModule' , ( ) => {
144 test . each ( [
Original file line number Diff line number Diff line change @@ -4,19 +4,6 @@ import type { RecursivePartial } from '../types'
44import type { ImportOptions } from './moduleTypes'
55import { defaultAnalysisOptions } from './preprocessor/analyzer'
66
7- const exportDefaultStr = 'export default'
8- export function removeExportDefault ( text : string ) {
9- if ( text . startsWith ( exportDefaultStr ) ) {
10- text = text . substring ( exportDefaultStr . length ) . trim ( )
11- }
12-
13- if ( text . endsWith ( ';' ) ) {
14- text = text . slice ( 0 , - 1 )
15- }
16-
17- return text
18- }
19-
207export function mergeImportOptions ( src ?: RecursivePartial < ImportOptions > ) : ImportOptions {
218 const baseOptions = _ . cloneDeep ( defaultAnalysisOptions )
229 return _ . merge ( baseOptions , src as any )
You can’t perform that action at this time.
0 commit comments