We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when import webpack function is used
import
exports.lazyLoadedImport = function() { var x = import( './Example.Lazy.LazyLoaded.purs' ) console.log(x) return x }
it throws error -
Unable to parse foreign module: examples/lazy/src/LazyLoadedImport.js The module could not be parsed: ImportToken {tokenSpan = TokenPn 50 2 11, tokenLiteral = "import", tokenComment = [WhiteSpace (TokenPn 49 2 10) " "]}
import() function should not be parsed as import token
import()
The text was updated successfully, but these errors were encountered:
@erikd could you suggest how to approach this issue, I would like to make pr
I think this is related to #115
Sorry, something went wrong.
For me the best thing would be to just treat it as a global function. My JS bundler then takes care of resolving it.
language-javascript
No branches or pull requests
when
import
webpack function is usedit throws error -
Expected
import()
function should not be parsed as import tokenThe text was updated successfully, but these errors were encountered: