File tree Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,12 @@ function run() {
108108 onComment : comments
109109 } ) ;
110110
111+ comments . forEach ( ( comment ) => {
112+ if ( comment . type === 'Block' ) {
113+ comment . value = comment . value . replace ( / ^ \t + / gm, '' ) ;
114+ }
115+ } ) ;
116+
111117 ast = walk ( ast , null , {
112118 // @ts -expect-error
113119 Identifier ( node , context ) {
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ class InternalCompileError extends Error {
1010 #diagnostic;
1111
1212 /**
13- * @param {string } code
14- * @param {string } message
15- * @param {[number, number] | undefined } position
16- */
13+ * @param {string } code
14+ * @param {string } message
15+ * @param {[number, number] | undefined } position
16+ */
1717 constructor ( code , message , position ) {
1818 super ( message ) ;
1919 this . stack = '' ; // avoid unnecessary noise; don't set it as a class property or it becomes enumerable
Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ class InternalCompileWarning extends CompileDiagnostic {
88 name = 'CompileWarning' ;
99
1010 /**
11- * @param {string } code
12- * @param {string } message
13- * @param {[number, number] | undefined } position
14- */
11+ * @param {string } code
12+ * @param {string } message
13+ * @param {[number, number] | undefined } position
14+ */
1515 constructor ( code , message , position ) {
1616 super ( code , message , position ) ;
1717 }
You can’t perform that action at this time.
0 commit comments