Guest User

Untitled

a guest
Dec 14th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. ERROR - Parse error. TypeError: redeclaration of const {variable name}
  2. ERROR - Parse error. illegal character
  3. return `<a href="/xxx/xxx/${a}">${b}</a>`;
  4. ^
  5.  
  6. error(307) Failed to evaluate module tagged as pure AMD
  7. (fell back to processing with regular expressions). module: app/es6/Test;
  8. error: SyntaxError: Block-scoped declarations (let, const, function, class)
  9. not yet supported outside strict mode
  10.  
  11. "use strict"
  12. define(["dijit/ConfirmDialog"], (ConfirmDialog) => {
  13. let id = '1'
  14. const dialog = new ConfirmDialog({
  15. title: "Delete",
  16. content: `Are you sure you want to delete ${id} ?`,
  17. style: "width: 300px"
  18. })
  19. dialog.show()
  20. })
  21.  
  22. ...
  23. optimizeOptions: {
  24. languageIn: 'ECMASCRIPT6',
  25. languageOut: 'ECMASCRIPT5'
  26. },
  27. layerOptimize: "closure.keeplines",
  28. optimize: "closure.keeplines",
  29. cssOptimize: "comments",
  30. mini: true,
  31. stripConsole: "all",
  32. selectorEngine: "lite",
  33. useSourceMaps: false,
  34. ...
  35. layers: {
  36. "dojo/dojo": {
  37. includeLocales: [ 'en-us' ],
  38. include: [ "dojo/dojo", "dojo/hash" ],
  39. boot: true,
  40. customBase: true
  41. }
  42. "app/Main": {
  43. includeLocales: [ 'en-us' ],
  44. include: [
  45. 'app/Header',
  46. 'app/Main'
  47. ]
  48. },
  49. ...
  50.  
  51. define(["app/es6/Dialog"], function(Dialog) {
  52. Dialog.show();
  53. });
Add Comment
Please, Sign In to add comment