Skip to content

[Q/A] How to import tensorflow in background SW #405

Answered by louisgv
sebous asked this question in Q&A
Discussion options

You must be logged in to vote

@sebous can you try upgrading to the latest version of Plasmo - there's an upgrade to SWC (the internal bundler), which should fix some of these importing issue.

If that still does not work, is this mainly on production build? If so, try it with the --no-hoist flag <-this will ensure all the scope are imported as-is. The dead code elimination might not be as efficient, but it should include all bundle for you.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sebous
Comment options

Answer selected by sebous
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants