mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-13 04:51:23 +00:00
Fixing require to be ignored by Webpack (#2115)
* Fixing require to be ignored by Webpack * Making the module.require even more dynamic, to trick Webpack
This commit is contained in:
@ -1251,7 +1251,7 @@ impl<'a> Context<'a> {
|
||||
self.global(&format!(
|
||||
"
|
||||
const l{0} = typeof {0} === 'undefined' ? \
|
||||
require('util').{0} : {0};\
|
||||
(0, module.require)('util').{0} : {0};\
|
||||
",
|
||||
s
|
||||
));
|
||||
|
Reference in New Issue
Block a user