Commit 2a2e76ce authored by Travis Fischer's avatar Travis Fischer

feat: remove commonjs support

parent de9dbc01
media/demo.gif

143 KB | W: | H:

media/demo.gif

144 KB | W: | H:

media/demo.gif
media/demo.gif
media/demo.gif
media/demo.gif
  • 2-up
  • Swipe
  • Onion skin
......@@ -72,5 +72,5 @@ Sleep 500ms
Enter
Show
Sleep 8s
Sleep 7s
Sleep 8s
......@@ -5,13 +5,13 @@
"author": "Travis Fischer <travis@transitivebullsh.it>",
"repository": "transitive-bullshit/chatgpt-api",
"license": "MIT",
"type": "module",
"source": "./src/index.ts",
"types": "./build/index.d.ts",
"main": "./build/index.js",
"exports": {
".": {
"import": "./build/index.mjs",
"require": "./build/index.js",
"import": "./build/index.js",
"default": "./build/index.js",
"types": "./build/index.d.ts"
}
},
......
......@@ -5,7 +5,7 @@ export default defineConfig({
outDir: 'build',
target: 'node14',
platform: 'node',
format: ['esm', 'cjs'],
format: ['esm'],
splitting: false,
sourcemap: true,
minify: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment