Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

crash with source-map instead of inline-source-map #968

@farfromrefug

Description

@farfromrefug

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 6.0.0 rc
  • plugins: nativescript-dev-webpack 1.0.0 rc
  • Android Runtime: 6.0.0 rc
  • vue project

I have an issue with source maps and the latest versions of nativescript-dev-webpack
Using the template webpack config file it works.
However i use mine which uses source-map instead of inline-source-map, my app crashes saying it cant require runtime.js.map
I think the issue comes from GenerateNativeScriptEntryPointsPlugin.
It was working before the RC, and now it does not.
What's bugging me is that i think it should work. The file runtime.js.map exists and is part of the APK in the assets/app folder.
the require('./runtime.js.map') is done in the runtime.js, so it should work just fine.

By the way it's kind of a requirement for me to use source-map. I use Bugsnag where map files are uploaded using .map files (i then filter with gradle so that map files are not included in the apk for size reasons).

Anyone has any idea why it could fail to require the .map file?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions