Replies: 3 comments 1 reply
-
Thanks! Do you see an issue in your console about needing the Node.js polyfill? Snowpack should be telling you how to resolve this, but we could be missing See #639 for a proposed improvement to this workflow |
Beta Was this translation helpful? Give feedback.
-
// the compiled `web_modules/antd.js` has
if (process.env && "development" !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') {xx}
// which originally is the bottom code in `node_modules/antd/dist/antd.js`
if (typeof process !== 'undefined' && process.env && "development" !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') {xx} I think it's not problems about polyfill. Antd use no any other node packages other than |
Beta Was this translation helpful? Give feedback.
-
Got it, yup we've seen these before. If you can make this change in a PR, I'd love to merge it and get this package running on Snowpack v2.7! // snowpack/src/install.ts
- 'process.env.': '({}).',
+ 'process.env': '({})', |
Beta Was this translation helpful? Give feedback.
-
yarn.lock.txt
Beta Was this translation helpful? Give feedback.
All reactions