Skip to content

Commit

Permalink
feat(ModuleImporter): implement import module compatible with bundlers
Browse files Browse the repository at this point in the history
Add 'node:' prefix to node imports in ModuleImporter.js
  • Loading branch information
nrauschcom committed Oct 3, 2021
1 parent 0d3e31b commit 48a5f59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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
Expand Down

0 comments on commit 48a5f59

Please sign in to comment.