From 48a5f59d85fd0b8663750c75356aa5a17f603cb2 Mon Sep 17 00:00:00 2001 From: Nico Rausch Date: Sun, 3 Oct 2021 22:10:47 +0200 Subject: [PATCH] feat(ModuleImporter): implement import module compatible with bundlers Add 'node:' prefix to node imports in ModuleImporter.js --- src/util/ModuleImporter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/ModuleImporter.js b/src/util/ModuleImporter.js index 6ed177cca823..7c0f9f86b88e 100644 --- a/src/util/ModuleImporter.js +++ b/src/util/ModuleImporter.js @@ -1,7 +1,7 @@ 'use strict'; -const fs = require('fs'); -const path = require('path'); +const fs = require('node:fs'); +const path = require('node:path'); /** * The ModuleImporter helper class is used to import local files, by using the bundler or file system, whichever is