Skip to content

Commit bbd8fcc

Browse files
committed
Try changing into a module
1 parent b550bc4 commit bbd8fcc

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "readable-from-web",
3-
"type": "commonjs",
3+
"type": "module",
44
"version": "1.0.0",
55
"packageManager": "yarn@4.12.0",
66
"description": "Experimental converter from WHATWG ReadableStream to readable-stream Readable",

tsconfig.build.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@
55
"ES2023",
66
"DOM"
77
],
8-
"module": "commonjs",
8+
"module": "umd",
99
"moduleResolution": "node",
1010
"strict": true,
1111
"declaration": true,
1212
"sourceMap": true,
1313
"noImplicitAny": true,
1414
"importHelpers": false,
1515
"inlineSources": false,
16-
"removeComments": true,
17-
"resolveJsonModule": true
16+
"removeComments": true
1817
},
1918
"include": [
2019
"./lib/*.ts"

vitest.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { compilerOptions } from './tsconfig.build.json'
21
import { defineConfig } from 'vitest/config'
32
import { playwright } from '@vitest/browser-playwright'
43

@@ -11,7 +10,7 @@ const browsers: ('chromium' | 'firefox' | 'webkit')[] = [
1110
export default defineConfig({
1211
build: {
1312
minify: false,
14-
target: compilerOptions.target
13+
target: 'ES2023'
1514
},
1615
test: {
1716
projects: [

0 commit comments

Comments
 (0)