Skip to content

Commit

Permalink
Generate an ES module (#58)
Browse files Browse the repository at this point in the history
This will allow downstream projects to import the polyfill using an
import statement.
  • Loading branch information
reillyeon authored Nov 21, 2023
1 parent 08c3955 commit a209091
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
File renamed without changes.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "web-serial-polyfill",
"version": "1.0.14",
"version": "1.0.15",
"description": "An implementation of the [Serial API](https://wicg.github.io/serial) on top of the [WebUSB API](https://wicg.github.io/webusb) for use with USB-to-serial adapters. Use of this library is limited to hardware and platforms where the device is accessible via the WebUSB API because it has not been claimed by a built-in device driver. This project will be used to prototype the design of the Serial API.",
"type": "module",
"main": "./dist/serial.js",
"types": "./dist/serial.d.ts",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"module": "commonjs",
"module": "es2015",
"lib": ["es2017"],
"outDir": "./dist/",
"sourceMap": true,
Expand Down

0 comments on commit a209091

Please sign in to comment.