Skip to content

Parsing issues for certain files #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tobiasviehweger opened this issue Oct 9, 2017 · 0 comments · Fixed by #101
Closed

Parsing issues for certain files #55

tobiasviehweger opened this issue Oct 9, 2017 · 0 comments · Fixed by #101

Comments

@tobiasviehweger
Copy link

tobiasviehweger commented Oct 9, 2017

If the source-map-loader (0.2.2) encounters the following, minified file, it throws a warning, that the sourceMap cannot be located

WARNING in ./node_modules/@atlaskit/single-select/node_modules/@atlaskit/icon/lib/Icon.js (Emitted value instead of an instance of Error) Cannot find SourceMap 'data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+"': Error: Can't resolve './data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+"' in 'K:\dev\jiasu.xzqcsaa.nyc.mn.yasoon.calendar\node_modules\@atlaskit\single-select\node_modules\@atlaskit\icon\lib' @ ./node_modules/@atlaskit/single-select/node_modules/@atlaskit/icon/glyph/expand.js 16:12-34 @ ./node_modules/@atlaskit/single-select/dist/bundle.js @ ./src/components/createDetailedEventModal.tsx @ ./src/components/calendarView.tsx @ ./src/index.tsx @ ./src/cloudBootstrapApp.tsx

Full file: Icon.js

If the file is pretty printed, this does not seem to happen, which is a somewhat weird behavior. This is the function in the "Icon.js" which is parsed incorrectly:

function f(e, t) {
        var r = t.css,
            n = t.sourceMap;
        n && (r += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(n)))) + " */");
        var o = new Blob([r], {
                type: "text/css"
            }),
            i = e.href;
        e.href = URL.createObjectURL(o), i && URL.revokeObjectURL(i)
    }

Thanks
Tobi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant