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 b0bd844 commit b6fc4fd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion bench/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ var Benchmark = typeof window === 'undefined' ? (await import('benchmark')).defa

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

var logElement
function log(message) {
Expand Down
3 changes: 2 additions & 1 deletion test/ExtendedVisualFormat.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 AutoLayout', function () {
it('imports AutoLayout', async function () {
const AutoLayout = await import('@lume/autolayout')
// const AutoLayout = await import('@lume/autolayout') // self-referencing import does not work due to https://github.com/nodejs/node/issues/50334
const AutoLayout = await import('../dist/AutoLayout.js')

var opts = {extended: true}
describe('ExtendedVisualFormat', function () {
Expand Down
3 changes: 2 additions & 1 deletion test/View.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 AutoLayout', function () {
it('imports AutoLayout', async function () {
const AutoLayout = await import('@lume/autolayout')
// const AutoLayout = await import('@lume/autolayout') // self-referencing import does not work due to https://github.com/nodejs/node/issues/50334
const AutoLayout = await import('../dist/AutoLayout.js')

describe('View', function () {
describe('setSize', function () {
Expand Down
3 changes: 2 additions & 1 deletion test/visualFormat.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 AutoLayout', function () {
it('imports AutoLayout', async function () {
const AutoLayout = await import('@lume/autolayout')
// const AutoLayout = await import('@lume/autolayout') // self-referencing import does not work due to https://github.com/nodejs/node/issues/50334
const AutoLayout = await import('../dist/AutoLayout.js')

describe('VisualFormat', function () {
describe('parse', function () {
Expand Down

0 comments on commit b6fc4fd

Please sign in to comment.