Skip to content
This repository has been archived by the owner on Mar 5, 2022. It is now read-only.

Dynamic import keyword is not working (in this repo) #136

Closed
bahmutov opened this issue Apr 8, 2020 · 2 comments · Fixed by #410
Closed

Dynamic import keyword is not working (in this repo) #136

bahmutov opened this issue Apr 8, 2020 · 2 comments · Fixed by #410
Labels

Comments

@bahmutov
Copy link
Contributor

bahmutov commented Apr 8, 2020

tests in cypress/component/component tests/advanced/lazy-loaded/

describe('dynamic import', () => {
  it('loads', () => {
    cy.wrap(import('./lazy-add'))
  })
})

Screen Shot 2020-04-08 at 9 10 52 AM

Babel does have the '@babel/plugin-syntax-dynamic-import' plugin.

Same seems to work with Webpack config from react-scripts bahmutov/test-mdx-example#1

@bahmutov bahmutov changed the title Dynamic import keyword is not working Dynamic import keyword is not working (in this repo) Apr 8, 2020
@bahmutov
Copy link
Contributor Author

Spent a few minutes, still could not get it to work

@bahmutov
Copy link
Contributor Author

🎉 This issue has been resolved in version 4.12.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant