Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ERROR - Parse error. TypeError: redeclaration of const {variable name}
- ERROR - Parse error. illegal character
- return `<a href="/xxx/xxx/${a}">${b}</a>`;
- ^
- error(307) Failed to evaluate module tagged as pure AMD
- (fell back to processing with regular expressions). module: app/es6/Test;
- error: SyntaxError: Block-scoped declarations (let, const, function, class)
- not yet supported outside strict mode
- "use strict"
- define(["dijit/ConfirmDialog"], (ConfirmDialog) => {
- let id = '1'
- const dialog = new ConfirmDialog({
- title: "Delete",
- content: `Are you sure you want to delete ${id} ?`,
- style: "width: 300px"
- })
- dialog.show()
- })
- ...
- optimizeOptions: {
- languageIn: 'ECMASCRIPT6',
- languageOut: 'ECMASCRIPT5'
- },
- layerOptimize: "closure.keeplines",
- optimize: "closure.keeplines",
- cssOptimize: "comments",
- mini: true,
- stripConsole: "all",
- selectorEngine: "lite",
- useSourceMaps: false,
- ...
- layers: {
- "dojo/dojo": {
- includeLocales: [ 'en-us' ],
- include: [ "dojo/dojo", "dojo/hash" ],
- boot: true,
- customBase: true
- }
- "app/Main": {
- includeLocales: [ 'en-us' ],
- include: [
- 'app/Header',
- 'app/Main'
- ]
- },
- ...
- define(["app/es6/Dialog"], function(Dialog) {
- Dialog.show();
- });
Add Comment
Please, Sign In to add comment