Skip to content

Commit

Permalink
Revert "fix: cannot resolve path when build with EXTERNAL_PATH (nodej…
Browse files Browse the repository at this point in the history
…s#93)"

This reverts commit 8ea767a.
  • Loading branch information
mochaaP committed Apr 28, 2024
1 parent 2a34177 commit 40297f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if (EXTERNAL_PATH) {
let lazy;
async function init () {
if (!lazy) {
lazy = await import(require('node:url').pathToFileURL(require('node:module').createRequire('${path.join(EXTERNAL_PATH, 'dist/lexer.js')}').resolve('./lexer.mjs')));
lazy = await import(require('node:url').pathToFileURL(require('node:module').createRequire('${EXTERNAL_PATH}/dist/lexer.js').resolve('./lexer.mjs')));
}
module.exports = lazy;
return lazy.init();
Expand Down

0 comments on commit 40297f5

Please sign in to comment.