Closed aaronshaf closed 4 years ago
I also experienced that bug. It looks like import * as React from '...'
is not processed correctly to import React from '...'
import * as React
build perfectly on @snowpack/app-scripts-react
version 1.1.0
. I think the new version specifically might be causing this issue.
Sorry about that, it should be import React from 'react'
in the official template, but we also should support this in Snowpack. Fixed in https://github.com/pikapkg/snowpack/commit/72933b3dc1e6cead15a950ce2353ae563acec775
Steps to reproduce:
Browser console: