I'm trying to use magicast for a project, but I'm unable to make it work just like in the examples. I also literally copied the examples but they just don't work, when I print the parseModule result, it is always an empty object {}. Am I missing something?
The examples I'm talking about:
const mod = parseModule(`export default defineConfig({ foo: 'bar' })`)
console.log(mod.exports) // {}
const mod = parseModule(`
import { defineConfig, Plugin } from 'vite'
import Vue from '@vitejs/plugin-vue'
import * as path from 'path'
export default defineConfig({
foo: []
})`)
console.log(mod.exports) // {}