|
|
|
|
|
by vmfunction
1107 days ago
|
|
>What we lost is just this >``` const someInitializedModule = require("module-name")(someOptions); ``` That can partially be done such as: import {jason} from 'https://example.com/foo.js?name=jason On the script site use:
const url = new URL(import.meta.url);
console.log(`${url.searchParams.get("name")`); |
|