diff --git a/packager/react-packager/src/Bundler/Bundle.js b/packager/react-packager/src/Bundler/Bundle.js index 007dca293..11a892f79 100644 --- a/packager/react-packager/src/Bundler/Bundle.js +++ b/packager/react-packager/src/Bundler/Bundle.js @@ -14,7 +14,7 @@ const UglifyJS = require('uglify-js'); const ModuleTransport = require('../lib/ModuleTransport'); const Activity = require('../Activity'); -const SOURCEMAPPING_URL = '\n\/\/@ sourceMappingURL='; +const SOURCEMAPPING_URL = '\n\/\/# sourceMappingURL='; const minifyCode = code => UglifyJS.minify(code, {fromString: true, ascii_only: true}).code; diff --git a/packager/react-packager/src/Bundler/__tests__/Bundle-test.js b/packager/react-packager/src/Bundler/__tests__/Bundle-test.js index 46b57741a..6dd3d3b7c 100644 --- a/packager/react-packager/src/Bundler/__tests__/Bundle-test.js +++ b/packager/react-packager/src/Bundler/__tests__/Bundle-test.js @@ -43,7 +43,7 @@ describe('Bundle', function() { expect(bundle.getSource({dev: true})).toBe([ 'transformed foo;', 'transformed bar;', - '\/\/@ sourceMappingURL=test_url' + '\/\/# sourceMappingURL=test_url' ].join('\n')); }); @@ -90,7 +90,7 @@ describe('Bundle', function() { 'transformed bar;', ';require("bar");', ';require("foo");', - '\/\/@ sourceMappingURL=test_url', + '\/\/# sourceMappingURL=test_url', ].join('\n')); });