OrfeasZ
04/12/2023, 2:46 AMimport "some-library"
(or require("some-library")
) for a polyfill library so it can be loaded and can inject its globals before main()
is called?andylamax
04/12/2023, 4:26 AMfun main() {
require("some-library")
// do the rest here
}
OrfeasZ
04/12/2023, 10:40 AMconfig.entry.main
in my webpack config, but it doesn't feel like the best solution.Big Chungus
04/12/2023, 11:04 AMOrfeasZ
04/12/2023, 11:05 AMBig Chungus
04/12/2023, 11:05 AMOrfeasZ
04/12/2023, 11:05 AMBig Chungus
04/12/2023, 11:06 AMOrfeasZ
04/12/2023, 11:06 AM@file:JsModule
that we deal with actually exported values yeah?Big Chungus
04/12/2023, 11:08 AMOrfeasZ
04/12/2023, 11:08 AMBig Chungus
04/12/2023, 11:12 AMOrfeasZ
04/12/2023, 11:12 AMBig Chungus
04/12/2023, 11:13 AMOrfeasZ
04/12/2023, 11:14 AMBig Chungus
04/12/2023, 11:14 AM