Use runtime wrapper which allow JavaScript to be load by Lynx.
npm install @lynx-js/runtime-wrapper-webpack-plugin