const path = require("path"); const { config } = require("@swc/core/spack"); module.exports = config({ target: "browser", entry: { main: path.resolve(__dirname, "main.js"), }, output: { path: path.resolve(__dirname, "dist"), }, options: { jsc: { target: "es2019", }, }, });