MCPcopy Index your code
hub / github.com/QwikDev/qwik / bundleQwikDom

Function bundleQwikDom

scripts/submodule-server.ts:87–115  ·  view source on GitHub ↗
(config: BuildConfig)

Source from the content-addressed store, hash-verified

85}
86
87async function bundleQwikDom(config: BuildConfig) {
88 const input = join(config.packagesDir, 'qwik-dom', 'lib', 'index.js');
89 const outfile = join(config.tmpDir, 'qwikdom.mjs');
90
91 const opts: BuildOptions = {
92 entryPoints: [input],
93 sourcemap: false,
94 minify: !config.dev,
95 bundle: true,
96 target,
97 outfile,
98 format: 'esm',
99 };
100
101 await build(opts);
102
103 const qwikDomPlugin: Plugin = {
104 name: 'qwikDomPlugin',
105 setup(build) {
106 build.onResolve({ filter: /@builder.io\/qwik-dom/ }, () => {
107 return {
108 path: outfile,
109 };
110 });
111 },
112 };
113
114 return qwikDomPlugin;
115}
116
117async function getQwikDomVersion(config: BuildConfig) {
118 const pkgJsonPath = join(config.packagesDir, 'qwik-dom');

Callers 1

submoduleServerFunction · 0.85

Calls 2

joinFunction · 0.85
buildFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…