(config: BuildConfig)
| 85 | } |
| 86 | |
| 87 | async 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 | |
| 117 | async function getQwikDomVersion(config: BuildConfig) { |
| 118 | const pkgJsonPath = join(config.packagesDir, 'qwik-dom'); |
no test coverage detected
searching dependent graphs…