Skip to content

Snowpack 2 + Emotion + TypeScript #29

Answered by pix2D
pix2D asked this question in Q&A
Jan 23, 2021 · 3 comments · 5 replies
Discussion options

You must be logged in to vote

Ah nevermind, it turned out to be pretty simple. Just change the snowpack.config.js file to:

module.exports = {
  extends: '@snowpack/app-scripts-react',
  packageOptions: {
    knownEntrypoints: [
      '@emotion/react',
      '@emotion/styled',
    ],
  },
}

The rest of the example is fine.

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@ben-rogerson
Comment options

Answer selected by pix2D
Comment options

You must be logged in to vote
3 replies
@ben-rogerson
Comment options

@pix2D
Comment options

@ben-rogerson
Comment options

Comment options

You must be logged in to vote
1 reply
@ben-rogerson
Comment options

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