Closed AshotN closed 4 years ago
(Unrelated, but hot reloading should work without any extra packages via https://facebook.github.io/react-native/docs/fast-refresh)
(Unrelated, but hot reloading should work without any extra packages via https://facebook.github.io/react-native/docs/fast-refresh)
Cool, I'll check that out. I'm willing to take criticism anywhere in the repo :P
Somehow, an exports variable is used before its initialization:
// ASSET: .../node_modules/autobind-decorator/lib/index.js
Object.defineProperty($b7dd60b1fe7834f360ce428629db247b$exports, '__esModule', {
value: true
});
// ....
var $b7dd60b1fe7834f360ce428629db247b$exports = $b7dd60b1fe7834f360ce428629db247b$export$default;
Minimum example:
import InputRange from 'react-input-range';
console.log(InputRange)
Testing again with the current version on the v2
branch, this seem to be fixed in the next release already.
Fixed in the nightly version (yarn add -D parcel@nightly
)
🐛 bug report
🎛 Configuration (.babelrc, package.json, cli command)
🤔 Expected Behavior
Using
yarn build
(parcel build index.html
) to produce optimized build.😯 Current Behavior
Parcel successfully bundles everything, but the browser throws an error.
Chromium
Firefox
🔦 Context
yarn watch
works fine. So perhaps it's something that is unique toparcel build
💻 Code Sample
The repo is on Github
🌍 Your Environment