Uploaded image for project: 'Fluid Infusion'
  1. Fluid Infusion
  2. FLUID-6618

Source maps only work for dist builds.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Pull Request
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Component/s: Build Scripts
    • Labels:
      None

      Description

      When the source maps are generated they are provided with a root option. The root is set to "../" which works for dist builds because they are in the "dist" directory and refer to files that are in the "src" directory. However with package builds (e.g. npm run build:pkg), the src directory is a direct sibling of the concatenated file. In this case root should be "".

      Two potential solutions:

      1. Copy src into dist, so that the root can always be ""
      2. Make the root option configurable through buildModules.js's api so that dist builds and package builds can specify a different root value. 

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jobara Justin Obara
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: