@@ -24,7 +24,7 @@ import { readPackageJson, writePackageJson } from './package-json';
2424export  async  function  submoduleServer ( config : BuildConfig )  { 
2525  const  submodule  =  'server' ; 
2626
27-   const  dominoPlugin  =  await  bundleDomino ( config ) ; 
27+   const  qwikDomPlugin  =  await  bundleQwikDom ( config ) ; 
2828
2929  const  opts : BuildOptions  =  { 
3030    entryPoints : [ join ( config . srcDir ,  submodule ,  'index.ts' ) ] , 
@@ -33,7 +33,7 @@ export async function submoduleServer(config: BuildConfig) {
3333    bundle : true , 
3434    target, 
3535    banner, 
36-     external : [ ...nodeBuiltIns ,  'domino ' ] , 
36+     external : [ ...nodeBuiltIns ,  '@builder.io/qwik-dom ' ] , 
3737    define : { 
3838      ...( await  inlineQwikScripts ( config ) ) , 
3939      'globalThis.QWIK_VERSION' : JSON . stringify ( config . distVersion ) , 
@@ -48,7 +48,7 @@ export async function submoduleServer(config: BuildConfig) {
4848    plugins : [ 
4949      importPath ( / ^ @ b u i l d e r \. i o \/ q w i k $ / ,  '../core.mjs' ) , 
5050      importPath ( / ^ @ b u i l d e r \. i o \/ q w i k \/ o p t i m i z e r $ / ,  '../optimizer.mjs' ) , 
51-       dominoPlugin , 
51+       qwikDomPlugin , 
5252    ] , 
5353    watch : watcher ( config ,  submodule ) , 
5454    inject : [ injectGlobalPoly ( config ) ] , 
@@ -61,7 +61,7 @@ export async function submoduleServer(config: BuildConfig) {
6161    plugins : [ 
6262      importPath ( / ^ @ b u i l d e r \. i o \/ q w i k $ / ,  '../core.cjs' ) , 
6363      importPath ( / ^ @ b u i l d e r \. i o \/ q w i k \/ o p t i m i z e r $ / ,  '../optimizer.cjs' ) , 
64-       dominoPlugin , 
64+       qwikDomPlugin , 
6565    ] , 
6666    watch : watcher ( config ) , 
6767    platform : 'node' , 
@@ -115,11 +115,11 @@ async function inlineQwikScripts(config: BuildConfig) {
115115  return  define ; 
116116} 
117117
118- async  function  bundleDomino ( config : BuildConfig )  { 
119-   const  outfile  =  join ( config . distDir ,  'domino .mjs' ) ; 
118+ async  function  bundleQwikDom ( config : BuildConfig )  { 
119+   const  outfile  =  join ( config . distDir ,  'qwikdom .mjs' ) ; 
120120
121121  const  opts : BuildOptions  =  { 
122-     entryPoints : [ require . resolve ( 'domino ' ) ] , 
122+     entryPoints : [ require . resolve ( '@builder.io/qwik-dom ' ) ] , 
123123    sourcemap : false , 
124124    minify : true , 
125125    bundle : true , 
@@ -148,22 +148,22 @@ async function bundleDomino(config: BuildConfig) {
148148
149149  await  build ( opts ) ; 
150150
151-   const  dominoPlugin : Plugin  =  { 
152-     name : 'dominoPlugin ' , 
151+   const  qwikDomPlugin : Plugin  =  { 
152+     name : 'domiqwikDomPluginnoPlugin ' , 
153153    setup ( build )  { 
154-       build . onResolve ( {  filter : / d o m i n o /   } ,  ( )  =>  { 
154+       build . onResolve ( {  filter : / @ b u i l d e r . i o \/ q w i k - d o m /   } ,  ( )  =>  { 
155155        return  { 
156156          path : outfile , 
157157        } ; 
158158      } ) ; 
159159    } , 
160160  } ; 
161161
162-   return  dominoPlugin ; 
162+   return  qwikDomPlugin ; 
163163} 
164164
165165async  function  getDominoVersion ( )  { 
166-   const  indexPath  =  require . resolve ( 'domino ' ) ; 
166+   const  indexPath  =  require . resolve ( '@builder.io/qwik-dom ' ) ; 
167167  const  pkgJsonPath  =  join ( indexPath ,  '..' ,  '..' ) ; 
168168  const  pkgJson  =  await  readPackageJson ( pkgJsonPath ) ; 
169169  return  pkgJson . version ; 
0 commit comments