Skip to content

Sourcemaps are not working properly  #494

Description

@mohsen1

I just downloaded from npm (v 0.0.1) and sourcemaps are not correct:

I see this in Chrome devtools

'use strict';Object.defineProperty(exports,"__esModule",{value: true});var_createClass=function(){functiondefineProperties(target,props){for(vari=0;i<props.length;i++){vardescriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"indescriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}returnfunction(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);returnConstructor;};}();var_react=__webpack_require__(/*! react */83);var_react2=_interopRequireDefault(_react);__webpack_require__(/*! ./App.css */256);function_interopRequireDefault(obj){returnobj&&obj.__esModule ? obj : {default: obj};}function_possibleConstructorReturn(self,call){if(!self){thrownewReferenceError("this hasn't been initialised - super() hasn't been called");}returncall&&(typeofcall==="object"||typeofcall==="function") ? call : self;}function_inherits(subClass,superClass){if(typeofsuperClass!=="function"&&superClass!==null){thrownewTypeError("Super expression must either be null or a function, not "+typeofsuperClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor: {value: subClass,enumerable: false,writable: true,configurable: true}});if(superClass)Object.setPrototypeOf ? Object.setPrototypeOf(subClass,superClass) : subClass.__proto__=superClass;}function_classCallCheck(instance,Constructor){if(!(instanceinstanceofConstructor)){thrownewTypeError("Cannot call a class as a function");}}varURL=functionURL(){_classCallCheck(this,URL);this.url='';this.isError=false;this.response={};this.statusCode=200;};
....

for my code:

importReact,{Component}from'react';import'./App.css';classURL{constructor(){this.url='';this.isError=false;this.response={};this.statusCode=200;}}...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions