From e36ab67591e80533070f131bf0a8158045a41f2c Mon Sep 17 00:00:00 2001 From: Matheus Afonso Martins Moreira Date: Sun, 27 Aug 2023 08:10:38 -0300 Subject: [PATCH] pug: delete register.js What is this thing for? --- packages/pug/register.js | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 packages/pug/register.js diff --git a/packages/pug/register.js b/packages/pug/register.js deleted file mode 100644 index 3f7b5752..00000000 --- a/packages/pug/register.js +++ /dev/null @@ -1,20 +0,0 @@ -var pug = require('./'); -var resolvedPug = JSON.stringify(require.resolve('./')); - -function compileTemplate(module, filename) { - var template = pug.compileFileClient(filename, { - inlineRuntimeFunctions: false, - }); - var body = - 'var pug = require(' + - resolvedPug + - ').runtime;\n\n' + - 'module.exports = ' + - template + - ';'; - module._compile(body, filename); -} - -if (require.extensions) { - require.extensions['.pug'] = compileTemplate; -}