mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-21 11:15:36 -05:00
[next] Bootstrap plugins directly (#1698)
This commit is contained in:
committed by
GitHub
parent
7994207c78
commit
3aef5a99dc
@@ -10,7 +10,11 @@ for (const file of readdirSync(join(__dirname, "..", "src", "plugins"))) {
|
||||
? name
|
||||
: `[${JSON.stringify(name)}]`;
|
||||
const value = JSON.stringify(`./plugins/${file}`);
|
||||
plugins.push(` ${key}: () => import(${value}),`);
|
||||
plugins.push(
|
||||
// this comment is needed to avoid bundlers eagerly embedding lazy
|
||||
// dependencies, causing all sort of issues once in production
|
||||
` ${key}: () => import(/* webpackIgnore: true */ ${value}),`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user