import type { SnapConfig } from '@metamask/snaps-cli'; /** * tr46 pulls in the Node `punycode` builtin and Buffer - and punycode is the exact code path that * turns a stored xn-- label back into the emoji a user typed. Without these polyfills the bundle * still loads and still evaluates cleanly; it just fails to resolve any non-ASCII name at runtime. * Do not "clean up" these flags because the build is quiet without them. */ const config: SnapConfig = { input: './src/index.ts', server: { port: 8080 }, polyfills: { buffer: true, punycode: true, }, }; export default config;