From 643f7b77122052e0a39a5bd2e26e6ae8db3edf83 Mon Sep 17 00:00:00 2001 From: Harutyun Amirjanyan Date: Tue, 6 Sep 2022 09:52:17 +0000 Subject: [PATCH] fix: prevent javascript snippets file confusing old packagers --- src/snippets/javascript.snippets.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/snippets/javascript.snippets.js b/src/snippets/javascript.snippets.js index b761b84a785..6e4d29a4dba 100644 --- a/src/snippets/javascript.snippets.js +++ b/src/snippets/javascript.snippets.js @@ -179,18 +179,18 @@ snippet forr #modules snippet def - define(function(require, exports, module) { + defin\x65(function(requir\x65, exports, module) { "use strict"; - var \${1/.*\\///} = require("\${1}"); + var \${1/.*\\///} = requir\x65("\${1}"); \$TM_SELECTED_TEXT }); snippet req guard ^\\s* - var \${1/.*\\///} = require("\${1}"); + var \${1/.*\\///} = requir\x65("\${1}"); \$0 snippet requ guard ^\\s* - var \${1/.*\\/(.)/\\u\$1/} = require("\${1}").\${1/.*\\/(.)/\\u\$1/}; + var \${1/.*\\/(.)/\\u\$1/} = requir\x65("\${1}").\${1/.*\\/(.)/\\u\$1/}; \$0 `;