Skip to content

Source map files have incorrect path locations #193

Description

@pietschy

Hi there, I'm getting the wrong path information being generated in my source map files. Details are:

Versions:

jspm@0.17.0-beta.40
systemjs@0.20.9 Dev
plugin-typscript@7.0.4
typescript@2.1.4 (and I also tried with 2.2.0 with the same outcome)

Config

  • I'm using jspm bundle app ../public/frontend --source-map-contents
  • my jspm.config.js file:
paths: {
    "github:": "jspm_packages/github/",
    "npm:": "jspm_packages/npm/",
  },
  browserConfig: {
    "baseURL": "/frontend"
  },
  transpiler: "ts",
  typescriptOptions: {
    "tsconfig": true
  },
packages: {
    "app": {
      "defaultExtension": "ts",
      "main": "bootstrap.js",
      "meta": {
        "*.ts": {
          "loader": "ts"
        },
        "*.css": {
          "loader": "text"
        },
        "*.html": {
          "loader": "text"
        },
        "*.js": {
          "loader": "ts"
        }
      }
    },
 etc....
  • my tsconfig.json file:
"compilerOptions": {
    "allowJs": true,
    "module": "es2015",
    "target": "es5",
    "moduleResolution": "classic",
    "noImplicitAny": false,
    "experimentalDecorators": true,
    "emitDecoratorMetadata": true,
    "rootDirs": [  /** these correspond to my jspm package entries **/
      "./apiActions",
      "./app",
      "./components",
      "./common",
      "./controlPanelApp",
      "./pectin",
      "./place",
      "./tests/spec"
    ],
   etc... 

Result

The sources: entry in app.map.js has:

  • files from jspm_packages at the correct path. .i.e
"../../frontend/jspm_packages/npm/es-abstract@1.7.0/helpers/isPrimitive.js",
  • the first of my source files in the correct location
"../../frontend/app/templates.js",
  • but the remainder of files from my packages are all at the root, i.e.
"../../frontend/clock.module.ts",

(it should be at ../../frontend/common/clock/clock.module.ts)

Any ideas?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions