Skip to content

Commit 321dc79

Browse files
committed
Test more scenarios and imports
1 parent 92a3c91 commit 321dc79

12 files changed

+167
-6
lines changed

.pnp.cjs

Lines changed: 94 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,13 @@
3131
},
3232
"scripts": {
3333
"build": "vite build && tsc",
34-
"test": "vite -c test/vite.config.ts"
34+
"test": "vite -c test/vite.config.ts build && vite -c test/vite.config.ts"
3535
},
3636
"packageManager": "[email protected]",
3737
"devDependencies": {
3838
"@types/node": "^18.7.23",
3939
"esbuild": "^0.15.10",
40+
"ohmyfetch": "^0.4.20",
4041
"rollup": "2.78.1",
4142
"typescript": "4.8.3",
4243
"vite": "^3.1.4",

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ export const nodePolyfills = (options: Partial<PolyfillOptions> = {}): Plugin =>
6464
plugins: [
6565
{
6666
...inject({
67-
// cf. https://github.com/niksy/node-stdlib-browser/blob/3e7cd7f3d115ac5c4593b550e7d8c4a82a0d4ac4/README.md#vite
67+
// https://github.com/niksy/node-stdlib-browser/blob/3e7cd7f3d115ac5c4593b550e7d8c4a82a0d4ac4/README.md#vite
6868
global: [globalShims, 'global'],
6969
process: [globalShims, 'process'],
70-
Buffer: [globalShims, 'Buffer']
70+
Buffer: [globalShims, 'Buffer'],
7171
}),
7272
},
7373
],

0 commit comments

Comments
 (0)