17
17
// cspell:words pnpify svgs entrypoints
18
18
19
19
import * as env from './builder/env.js' ;
20
-
21
20
import { fileURLToPath } from 'url' ;
22
21
import fs from 'fs' ;
23
22
import path from 'path' ;
@@ -37,7 +36,8 @@ function isWorkspace() {
37
36
38
37
const iconsPath = path . dirname ( resolve . sync ( cwd , '@visualdl/icons' ) ) ;
39
38
const 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
+
41
41
const wasmPath = path . dirname ( resolve . sync ( cwd , '@visualdl/wasm' ) ) ;
42
42
const dest = path . resolve ( cwd , './dist/__snowpack__/link/packages' ) ;
43
43
@@ -66,8 +66,6 @@ export default {
66
66
plugins : [
67
67
'@snowpack/plugin-react-refresh' ,
68
68
'@snowpack/plugin-dotenv' ,
69
- 'snowpack-plugin-less' ,
70
- '@snowpack/plugin-sass' ,
71
69
[
72
70
'@snowpack/plugin-typescript' ,
73
71
{
@@ -101,8 +99,8 @@ export default {
101
99
destination : path . join ( dest , 'netron/dist' )
102
100
} ,
103
101
{
104
- source : [ path . join ( TracePath , '**/*' ) ] ,
105
- destination : path . join ( dest , 'trace /dist' )
102
+ source : [ path . join ( netronPath2 , '**/*' ) ] ,
103
+ destination : path . join ( dest , 'netron2 /dist' )
106
104
} ,
107
105
{
108
106
source : [ path . join ( wasmPath , '*.{js,wasm}' ) ] ,
@@ -118,8 +116,9 @@ export default {
118
116
} ,
119
117
packageOptions : {
120
118
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' ]
123
122
} ,
124
123
buildOptions : {
125
124
out : 'dist' ,
0 commit comments