These are chat archives for systemjs/systemjs

2nd
Apr 2017
Bitcollage
@SerkanSipahi
Apr 02 2017 18:44
hi @guybedford and all, something is broken in my application. All modules inside of node_modules lose there defaultExtension(js) although this is set in SystemJS.Config under packages.node_modules.defaultExtension! The browser try to load: http://localhost:3000/node_modules/app-decorators/src/index but without ".js". What im doing wrong?
SystemJS.config({
    "transpiler": false,
    "packageConfigPaths": [
        "npm:@*/*.json",
        "npm:*.json",
        "github:*/*.json"
    ],
    "paths": {
        "github": "jspm_packages/github/",
        "npm:": "jspm_packages/npm/",
        "src/": "lib/",
        "test/": "test/",
        "app-decorators/": "node_modules/app-decorators/"
    },
    "map": {
        "app-decorators": "app-decorators/src/index",
        "app-decorators/bootstrap": "app-decorators/src/bootstrap",
        "app-decorators-helper/register-customelement": "app-decorators/src/libs/customelement",
        "app-decorators-helper/random-storage": "app-decorators/src/libs/random-storage"
    },
    "meta": {
        "app-decorators": {
            "build": false
        }
    },
    "packages": {
        "src": {
            "defaultExtension": "js"
        },
        "test": {
            "defaultExtension": "js"
        },
        "node_modules": {
            "defaultExtension": "js"
        }
    }
});
Bitcollage
@SerkanSipahi
Apr 02 2017 19:00
@guybedford i found the issue. The problem was meta.app-decorators.build = false (see SysetmJS.config). I use this property when im building a bundle with jspm but in this case it ignore the settings for package.node_modules.defaultExtension. This is not what I expected. Or is wrong my assumption or is this a bug? There is an another solution:
jspm bundle myapp - app-decorators dist/myapp.js but this is not what i want.