Skip to content

Commit

Permalink
change ext to .js
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Feb 10, 2024
1 parent 2a80109 commit 2858aec
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/core.mjs → lib/core.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEffect, useCallback, useState, useId, useRef } from 'react'
import { createModule } from './module.mjs'
import { createModule } from './module.js'
import { transform } from 'sucrase'
import { init, parse } from 'es-module-lexer'

Expand Down
2 changes: 2 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { DevJar } from './render.js'
export { useLiveCode } from './core.js'
2 changes: 0 additions & 2 deletions lib/index.mjs

This file was deleted.

File renamed without changes.
2 changes: 1 addition & 1 deletion lib/render.mjs → lib/render.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useEffect, useRef } from 'react'
import { useLiveCode } from './core.mjs'
import { useLiveCode } from './core.js'

const defaultOnError = typeof window !== 'undefined' ? console.error : (() => {})

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.4.0",
"type": "module",
"exports": {
".": "./lib/index.mjs",
".": "./lib/index.js",
"./package.json": "./package.json"
},
"license": "MIT",
Expand Down

0 comments on commit 2858aec

Please sign in to comment.