Skip to content

Commit

Permalink
self-referencing import doesn't work, undo it. nodejs/node#50334
Browse files Browse the repository at this point in the history
  • Loading branch information
trusktr committed Oct 23, 2023
1 parent 45fa466 commit 9c648f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bench/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ var c = typeof window === 'undefined' ? (await import('cassowary')).default : wi

main()
async function main() {
const kiwi = await import('@lume/kiwi')
// const kiwi = await import('@lume/kiwi') // self-referencing import does not work due to https://github.com/nodejs/node/issues/50334
const kiwi = await import('../dist/kiwi.js')

var logElement
function log(message) {
Expand Down
3 changes: 2 additions & 1 deletion test/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ var assert = typeof window === 'undefined' ? (await import('assert')).default :

describe('import kiwi', function () {
it('imports kiwi', async function () {
const kiwi = await import('@lume/kiwi')
// const kiwi = await import('@lume/kiwi') // self-referencing import does not work due to https://github.com/nodejs/node/issues/50334
const kiwi = await import('../dist/kiwi.js')

describe('kiwi', function () {
it('create Solver', function () {
Expand Down

0 comments on commit 9c648f2

Please sign in to comment.