Tags: dbinev/cortex-debug
Tags
This should fix loading of the binary modules for the serial port whe… …n webpack has been completed. Webpack normally replaces the require method - but you can access it using the _non_webpack_require__ method (which becomes regular require when packed). This change conditionally uses with require or __non_webpack_require__ depending on if it is being used in a webpack context.
PreviousNext