{"action":"created","issue":{"url":"https://api.github.com/repos/systemjs/builder/issues/610","repository_url":"https://api.github.com/repos/systemjs/builder","labels_url":"https://api.github.com/repos/systemjs/builder/issues/610/labels{/name}","comments_url":"https://api.github.com/repos/systemjs/builder/issues/610/comments","events_url":"https://api.github.com/repos/systemjs/builder/issues/610/events","html_url":"https://github.com/systemjs/builder/issues/610","id":157237212,"number":610,"title":"Static build fails on v0.15.18 due to a missing source map file ","user":{"login":"korya","id":148461,"avatar_url":"https://avatars.githubusercontent.com/u/148461?v=3","gravatar_id":"","url":"https://api.github.com/users/korya","html_url":"https://github.com/korya","followers_url":"https://api.github.com/users/korya/followers","following_url":"https://api.github.com/users/korya/following{/other_user}","gists_url":"https://api.github.com/users/korya/gists{/gist_id}","starred_url":"https://api.github.com/users/korya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/korya/subscriptions","organizations_url":"https://api.github.com/users/korya/orgs","repos_url":"https://api.github.com/users/korya/repos","events_url":"https://api.github.com/users/korya/events{/privacy}","received_events_url":"https://api.github.com/users/korya/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-27T15:52:30Z","updated_at":"2016-05-27T15:55:36Z","closed_at":null,"body":"After upgrading to `v0.15.18` I get the following error during build:\r\n\r\n```\r\n... [SOME LINES ARE OMMITTED] ...\r\n[11:46:47] 'dist:bundle-app-js' errored after 314 ms\r\n[11:46:47] Error on fetch for vendor:es6-shim.js at file:///Users/korya/dev/embedded_fw/recipes-planitar/survey/build/vendor/es6-shim.js\r\n\tLoading app/bootstrap.js\r\n\tError: ENOENT: no such file or directory, open '/Users/korya/dev/embedded_fw/recipes-planitar/survey/build/vendor/es6-shim.map'\r\n    at Error (native)\r\n```\r\n\r\n***\r\n\r\nIndeed `build/vendor/es6-shim.js` references its source map file in a comment:\r\n\r\n```js\r\n...\r\n//# sourceMappingURL=es6-shim.map\r\n```\r\n\r\nThis files does not exist in `build/vendor` because I don't need it. I bundle my application without source maps.\r\n\r\n***\r\n\r\nHere is my setup. It **worked fine with `v0.15.13`**.\r\n\r\nI'm using the following gulp task to bundle my code:\r\n\r\n```js\r\ngulp.task('dist:bundle-app-js', ['build'], (cb) => {\r\n  var builder = new systemjsBuilder('./build', 'config.js');\r\n\r\n  return builder.buildStatic('app/bootstrap.js', 'www/bundle.js', {\r\n    runtime: false,\r\n    minify: true,\r\n    mangle: true,\r\n  });\r\n});\r\n```\r\n\r\nContents of `config.js`:\r\n\r\n```js\r\nSystem.config({\r\n  baseURL: '/',\r\n  defaultJSExtensions: true,\r\n  paths: {\r\n    'vendor:*': 'vendor/*',\r\n  },\r\n\r\n  map: {\r\n    'es6-shim': 'vendor:es6-shim.js',\r\n    'lodash': 'vendor:lodash.js',\r\n    'jquery': 'vendor:jquery.js',\r\n    'jquery-ui': 'vendor:jquery-ui.js',\r\n    'bootstrap': 'vendor:bootstrap.js',\r\n    'angular': 'vendor:angular.js',\r\n    'angular-cookies': 'vendor:angular-cookies.js',\r\n    'angular-touch': 'vendor:angular-touch',\r\n    'angular-ui-router': 'vendor:angular-ui-router',\r\n    'ui-bootstrap': 'vendor:ui-bootstrap',\r\n    'toastr': 'vendor:toastr',\r\n    'hammer': 'vendor:hammer',\r\n    'propagating': 'vendor:propagating',\r\n  },\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/systemjs/builder/issues/comments/222184150","html_url":"https://github.com/systemjs/builder/issues/610#issuecomment-222184150","issue_url":"https://api.github.com/repos/systemjs/builder/issues/610","id":222184150,"user":{"login":"korya","id":148461,"avatar_url":"https://avatars.githubusercontent.com/u/148461?v=3","gravatar_id":"","url":"https://api.github.com/users/korya","html_url":"https://github.com/korya","followers_url":"https://api.github.com/users/korya/followers","following_url":"https://api.github.com/users/korya/following{/other_user}","gists_url":"https://api.github.com/users/korya/gists{/gist_id}","starred_url":"https://api.github.com/users/korya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/korya/subscriptions","organizations_url":"https://api.github.com/users/korya/orgs","repos_url":"https://api.github.com/users/korya/repos","events_url":"https://api.github.com/users/korya/events{/privacy}","received_events_url":"https://api.github.com/users/korya/received_events","type":"User","site_admin":false},"created_at":"2016-05-27T15:55:36Z","updated_at":"2016-05-27T15:55:36Z","body":"I tried to explicitly set `sourceMaps` option  to false using:\r\n\r\n```js\r\ngulp.task('dist:bundle-app-js', ['build'], (cb) => {\r\n  var builder = new systemjsBuilder('./build', 'config.js');\r\n\r\n  return builder.buildStatic('app/bootstrap.js', 'www/bundle.js', {\r\n    runtime: false,\r\n    minify: true,\r\n    mangle: true,\r\n    sourceMaps: false,\r\n  });\r\n});\r\n```\r\n\r\nIt did not help."}}
{"actor":{"display_login":"korya"}}