1717// cspell:words pnpify svgs entrypoints
1818
1919import * as env from './builder/env.js' ;
20-
2120import { fileURLToPath } from 'url' ;
2221import fs from 'fs' ;
2322import path from 'path' ;
@@ -37,7 +36,8 @@ function isWorkspace() {
3736
3837const iconsPath = path . dirname ( resolve . sync ( cwd , '@visualdl/icons' ) ) ;
3938const netronPath = path . dirname ( resolve . sync ( cwd , '@visualdl/netron' ) ) ;
40- const TracePath = path . dirname ( resolve . sync ( cwd , './public/static' ) ) ;
39+ const netronPath2 = path . dirname ( resolve . sync ( cwd , '@visualdl/netron2' ) ) ;
40+
4141const wasmPath = path . dirname ( resolve . sync ( cwd , '@visualdl/wasm' ) ) ;
4242const dest = path . resolve ( cwd , './dist/__snowpack__/link/packages' ) ;
4343
@@ -66,8 +66,6 @@ export default {
6666 plugins : [
6767 '@snowpack/plugin-react-refresh' ,
6868 '@snowpack/plugin-dotenv' ,
69- 'snowpack-plugin-less' ,
70- '@snowpack/plugin-sass' ,
7169 [
7270 '@snowpack/plugin-typescript' ,
7371 {
@@ -101,8 +99,8 @@ export default {
10199 destination : path . join ( dest , 'netron/dist' )
102100 } ,
103101 {
104- source : [ path . join ( TracePath , '**/*' ) ] ,
105- destination : path . join ( dest , 'trace /dist' )
102+ source : [ path . join ( netronPath2 , '**/*' ) ] ,
103+ destination : path . join ( dest , 'netron2 /dist' )
106104 } ,
107105 {
108106 source : [ path . join ( wasmPath , '*.{js,wasm}' ) ] ,
@@ -118,8 +116,9 @@ export default {
118116 } ,
119117 packageOptions : {
120118 polyfillNode : true ,
121- // knownEntrypoints: ['chai', '@testing-library/react', 'fetch-mock/esm/client', 'react-is','rc-util/es/hooks/useId','rc-util/es/Portal','rc-util/es/Dom/contains','rc-util/es/Dom/css','rc-util/es/getScrollBarSize','rc-util/es/PortalWrapper','rc-select/es/hooks/useId','rc-util/es/Dom/isVisible','rc-util/es/Dom/focus','rc-util/es/Dom/focus']
122- knownEntrypoints : [ 'chai' , '@testing-library/react' , 'fetch-mock/esm/client' , 'react-is' , 'antd' ]
119+ namedExports : [ 'gl-vec2' , 'dagre' ] ,
120+ // knownEntrypoints: ['chai', '@testing-library/react', 'fetch-mock/esm/client']
121+ knownEntrypoints : [ 'chai' , '@testing-library/react' ]
123122 } ,
124123 buildOptions : {
125124 out : 'dist' ,
0 commit comments