Skip to content

Commit

Permalink
fix: use cjs exports for node entries
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 19, 2020
1 parent 642c6b9 commit 5aaed44
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src.runtime/node/http/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { METHODS, STATUS_CODES } from './consts'
import { IncomingMessage } from './request'
import { ServerResponse } from './response'
const { METHODS, STATUS_CODES } = require('./consts')
const { IncomingMessage } = require('./request')
const { ServerResponse } = require('./response')

export default {
module.exports = {
METHODS,
STATUS_CODES,
IncomingMessage,
Expand Down
3 changes: 0 additions & 3 deletions src.runtime/node/index.ts

This file was deleted.

4 changes: 2 additions & 2 deletions src.runtime/node/net/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Socket } from './socket'
const { Socket } = require('./socket')

export default {
module.exports = {
Socket
}
6 changes: 3 additions & 3 deletions src.runtime/node/stream/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Readable } from './readable'
import { Writable } from './writable'
const { Readable } = require('./readable')
const { Writable } = require('./writable')

export default {
module.exports = {
Readable,
Writable
}

0 comments on commit 5aaed44

Please sign in to comment.