File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed
packages/dev-utils/src/sandbox Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -50,10 +50,6 @@ function transformFileContents(
5050 }
5151
5252 let transformed = contents
53- . replace ( / ^ i m p o r t C o d e ( B l o c k ) ? .+ ; $ / gm, "" )
54- . replace ( / < C o d e B l o c k [ ^ > ] * > / g, "<pre><code>" )
55- . replace ( / < \/ C o d e B l o c k > / g, "</code></pre>" )
56- . replace ( / < ( \/ ) ? C o d e / g, "<$1code" )
5753 . replace ( / \. ( \. \/ T e x t F i e l d T h e m e C o n f i g ) / , "$1" )
5854 . replace ( aliasRegExp , `"${ aliasReplacement } ` ) ;
5955
Original file line number Diff line number Diff line change @@ -11,17 +11,10 @@ import { getSourceFile } from "./getSourceFile";
1111export type ReferencedDependencies = Set < string > ;
1212export type ReferencedFiles = Map < string , string > ;
1313
14- // since I don't want to include markdown stuff
15- const IGNORED_MODULES = [ "marked" , "prismjs" ] ;
16- const IGNORED_FILE_REGEXP =
17- / M a r k d o w n | C o d e | c o n s t a n t s \/ ( g i t h u b | p a c k a g e s ) | @ r e a c t - m d / ;
14+ const IGNORED_FILE_REGEXP = / c o n s t a n t s \/ ( g i t h u b | p a c k a g e s ) | @ r e a c t - m d / ;
1815
1916function isIgnoredDependency ( name : string ) : boolean {
20- return (
21- IGNORED_MODULES . includes ( name ) ||
22- IGNORED_FILE_REGEXP . test ( name ) ||
23- / d i s t \/ s c s s V a r i a b l e s / . test ( name )
24- ) ;
17+ return IGNORED_FILE_REGEXP . test ( name ) || / d i s t \/ s c s s V a r i a b l e s / . test ( name ) ;
2518}
2619
2720const SCSS_IMPORT = / @ i m p o r t ' ( .+ ) ' ; / g;
You can’t perform that action at this time.
0 commit comments