Skip to content

Commit

Permalink
Add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Nov 12, 2023
1 parent 57db28e commit 5f2d25a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ export default async function loader(this: LoaderContext<any>, source: string) {
const callback = this.async();

try {
const result = parse(source);
console.log({ result });
// eslint-disable-next-line @typescript-eslint/naming-convention
const [_, exports = []] = parse(source);
const [_, exports = []] = result;

const namedExportsOrder = exports.some(
(e) => source.substring(e.s, e.e) === '__namedExportsOrder'
Expand Down

0 comments on commit 5f2d25a

Please sign in to comment.