@ifc-lite/viewer 1.0.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/vite.config.ts CHANGED
@@ -12,12 +12,22 @@ export default defineConfig({
12
12
  '@ifc-lite/renderer': path.resolve(__dirname, '../../packages/renderer/src'),
13
13
  '@ifc-lite/query': path.resolve(__dirname, '../../packages/query/src'),
14
14
  '@ifc-lite/spatial': path.resolve(__dirname, '../../packages/spatial/src'),
15
- '@ifc-lite/wasm': path.resolve(__dirname, '../../packages/wasm'),
15
+ '@ifc-lite/data': path.resolve(__dirname, '../../packages/data/src'),
16
+ '@ifc-lite/export': path.resolve(__dirname, '../../packages/export/src'),
17
+ '@ifc-lite/cache': path.resolve(__dirname, '../../packages/cache/src'),
18
+ '@ifc-lite/wasm': path.resolve(__dirname, '../../packages/wasm/pkg/ifc-lite.js'),
16
19
  },
17
20
  },
18
21
  server: {
19
22
  port: 3000,
20
23
  open: true,
24
+ hmr: {
25
+ overlay: true,
26
+ },
27
+ watch: {
28
+ usePolling: false,
29
+ ignored: ['**/node_modules/**', '**/dist/**', '**/target/**', '**/pkg/**'],
30
+ },
21
31
  },
22
32
  build: {
23
33
  target: 'esnext',
@@ -36,6 +46,10 @@ export default defineConfig({
36
46
  resolveId(id) {
37
47
  if (id.startsWith('@ifc-lite/')) {
38
48
  const packageName = id.split('/')[1];
49
+ // WASM package doesn't have src folder - use pkg
50
+ if (packageName === 'wasm') {
51
+ return path.resolve(__dirname, `../../packages/wasm/pkg/ifc-lite.js`);
52
+ }
39
53
  return path.resolve(__dirname, `../../packages/${packageName}/src`);
40
54
  }
41
55
  },