-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
24 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@shadeprotocol/shadejs": minor | ||
--- | ||
|
||
Fix installation issues on client side |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,2 @@ | ||
// eslint-disable-next-line import/no-extraneous-dependencies | ||
import 'whatwg-fetch'; | ||
|
||
if (typeof window === 'undefined') { | ||
// @ts-ignore | ||
global.window = globalThis; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,39 @@ | ||
import { defineConfig } from 'vite'; | ||
import path from 'path'; | ||
// eslint-disable-next-line import/no-extraneous-dependencies | ||
import dts from 'vite-plugin-dts'; | ||
import { nodePolyfills } from 'vite-plugin-node-polyfills'; | ||
|
||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
// @ts-ignore | ||
// vitest configs | ||
test: { | ||
globals: true, | ||
}, | ||
|
||
resolve: { | ||
alias: { | ||
'~': `${path.resolve(__dirname, 'src')}`, | ||
}, | ||
}, | ||
|
||
build: { | ||
manifest: true, | ||
minify: true, | ||
reportCompressedSize: true, | ||
lib: { | ||
entry: path.resolve(__dirname, 'src/index.ts'), | ||
name: 'index', | ||
formats: ['es', 'cjs'], | ||
name: 'shadejs', | ||
fileName: 'index', | ||
}, | ||
}, | ||
plugins: [dts({ rollupTypes: true })], | ||
plugins: [ | ||
dts({ rollupTypes: true }), | ||
nodePolyfills({ | ||
include: ['path', 'buffer'], | ||
globals: { | ||
Buffer: true, | ||
}, | ||
}), | ||
], | ||
}); |
This file was deleted.
Oops, something went wrong.