Skip to content

Commit

Permalink
fix: 1
Browse files Browse the repository at this point in the history
  • Loading branch information
theajack committed Aug 14, 2023
1 parent a223859 commit d5e18b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/compiler-node/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ export function parseAlins (code: string, {
if (filename) options.filename = filename;
}

const output = transform(code, );
const output = transform(code, options);
return output.code || '';
}
3 changes: 1 addition & 2 deletions packages/plugin-webpack/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {parseAlins, IParserOptions} from 'alins-compiler-node';

export default function AlinsLoader (this: any, source: string) {
const id = this.resourcePath;
console.log('this.resourcePath', id);
// console.log('this.resourcePath', id);
if (!/\.[jt]sx$/.test(id)) return source;
// console.log('AlinsLoader', source, id);

Expand All @@ -19,7 +19,6 @@ export default function AlinsLoader (this: any, source: string) {
if (/\.tsx$/.test(id)) {
options.ts = true;
}
options.useImport = false;
const result = parseAlins(source, options);
// console.log('AlinsLoader22', result);
return result;
Expand Down

0 comments on commit d5e18b9

Please sign in to comment.