This translation is incomplete. Please help translate this article from English
Message
Warning: SyntaxError: Using //@ to indicate sourceURL pragmas is deprecated. Use //# instead Warning: SyntaxError: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
Error type
SyntaxError가 발생했다는 경고. JavaScript 실행이 중단되지 않습니다.
무엇이 잘못 되었는가?
JavaScript 소스에 사용되지 않는 소스 맵 구문이 있습니다.
JavaScript 소스는 서버에서보다 효율적으로 전달 할 수 있도록 결합 및 축소될 때가 있습니다. source maps을 사용하면, 디버거가 실행중인 코드를 원본 소스 파일에 매핑 할 수 있습니다.
The source map specification changed the syntax due to a conflict with IE whenever it was found in the page after //@cc_on was interpreted to turn on conditional compilation in the IE JScript engine. The conditional compilation comment in IE is a little known feature, but it broke source maps with jQuery and other libraries.
Examples
Deprecated syntax
Syntax with the "@" sign is deprecated.
//@ sourceMappingURL=http://example.com/path/to/your/sourcemap.map
Standard syntax
Use the "#" sign instead.
//# sourceMappingURL=http://example.com/path/to/your/sourcemap.map
Or, alternatively, you can set a SourceMap header to your JavaScript file to avoid having a comment at all:
SourceMap: /path/to/file.js.map