cannot rebuilt dist/lexer.js, just use pure-js lexer

Last-Update: 2020-11-24
Forwarded: not-needed

Gbp-Pq: Name cjs-module-lexer.patch
This commit is contained in:
Jérémy Lal 2022-08-16 11:14:24 +08:00 committed by Lu zhiping
parent 757c1c8fc4
commit 7587a7d37e
2 changed files with 1 additions and 9 deletions

View File

@ -59,14 +59,7 @@ const asyncESM = require('internal/process/esm_loader');
let cjsParse;
async function initCJSParse() {
if (typeof WebAssembly === 'undefined') {
cjsParse = require('internal/deps/cjs-module-lexer/lexer').parse;
} else {
const { parse, init } =
require('internal/deps/cjs-module-lexer/dist/lexer');
await init();
cjsParse = parse;
}
cjsParse = require('internal/deps/cjs-module-lexer/lexer').parse;
}
const translators = new SafeMap();

View File

@ -250,7 +250,6 @@
'deps/acorn-plugins/acorn-private-methods/index.js',
'deps/acorn-plugins/acorn-static-class-features/index.js',
'deps/cjs-module-lexer/lexer.js',
'deps/cjs-module-lexer/dist/lexer.js',
],
'node_mksnapshot_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)node_mksnapshot<(EXECUTABLE_SUFFIX)',
'mkcodecache_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mkcodecache<(EXECUTABLE_SUFFIX)',