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"]
  }
})
```

Reference: https://v2.vitejs.dev/config/#resolve-conditions

Related: socketio/socket.io-client@781d753
  • Loading branch information
darrachequesne committed Jun 27, 2023
1 parent 6404391 commit fe4d93a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
".": {
"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 fe4d93a

Please sign in to comment.