Skip to content

Commit

Permalink
refactor: expose the ESM build with debug
Browse files Browse the repository at this point in the history
So that debug logs can be printed with vite:

```js
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

export default defineConfig({
  plugins: [react()],
  server: {
    port: 4000
  },
  resolve: {
    conditions: ["development"]
  }
})
```

Related: socketio/socket.io-client@781d753
  • Loading branch information
darrachequesne committed Jun 22, 2023
1 parent 0eecad9 commit 7594aa4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -15,6 +15,7 @@
"exports": {
"import": {
"node": "./build/esm-debug/index.js",
"development": "./build/esm-debug/index.js",
"default": "./build/esm/index.js"
},
"require": "./build/cjs/index.js"
Expand Down

0 comments on commit 7594aa4

Please sign in to comment.