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 ...@@ -72,5 +72,5 @@ Sleep 500ms
Enter Enter
Show Show
Sleep 8s Sleep 7s
Sleep 8s Sleep 8s
...@@ -5,13 +5,13 @@ ...@@ -5,13 +5,13 @@
"author": "Travis Fischer <travis@transitivebullsh.it>", "author": "Travis Fischer <travis@transitivebullsh.it>",
"repository": "transitive-bullshit/chatgpt-api", "repository": "transitive-bullshit/chatgpt-api",
"license": "MIT", "license": "MIT",
"type": "module",
"source": "./src/index.ts", "source": "./src/index.ts",
"types": "./build/index.d.ts", "types": "./build/index.d.ts",
"main": "./build/index.js",
"exports": { "exports": {
".": { ".": {
"import": "./build/index.mjs", "import": "./build/index.js",
"require": "./build/index.js", "default": "./build/index.js",
"types": "./build/index.d.ts" "types": "./build/index.d.ts"
} }
}, },
......
...@@ -5,7 +5,7 @@ export default defineConfig({ ...@@ -5,7 +5,7 @@ export default defineConfig({
outDir: 'build', outDir: 'build',
target: 'node14', target: 'node14',
platform: 'node', platform: 'node',
format: ['esm', 'cjs'], format: ['esm'],
splitting: false, splitting: false,
sourcemap: true, sourcemap: true,
minify: 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