File tree Expand file tree Collapse file tree 2 files changed +34
-1
lines changed
Expand file tree Collapse file tree 2 files changed +34
-1
lines changed Original file line number Diff line number Diff line change 3535 "build:src:environment" : " node scripts/environment" ,
3636 "build:themeable" : " node scripts/themeable-source" ,
3737 "build:pages:vite" : " vite build" ,
38- "build:pages:tsc" : " tsc -p pages/tsconfig.json"
38+ "build:pages:tsc" : " tsc -p pages/tsconfig.json" ,
39+ "build:pages:bundle" : " tsc -p pages/tsconfig.json"
3940 },
4041 "exports" : {
4142 "." : " ./index.js" ,
Original file line number Diff line number Diff line change 1+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+ // SPDX-License-Identifier: Apache-2.0
3+ import { dirname , resolve } from "node:path" ;
4+ import { fileURLToPath } from "node:url" ;
5+
6+ import react from "@vitejs/plugin-react" ;
7+ import { defineConfig } from "vite" ;
8+
9+ const __dirname = dirname ( fileURLToPath ( import . meta. url ) ) ;
10+
11+ // https://vitejs.dev/config/
12+ export default defineConfig ( {
13+ plugins : [ react ( { fastRefresh : false } ) ] ,
14+ build : {
15+ lib : {
16+ entry : resolve ( __dirname , "pages/main.tsx" ) ,
17+ name : "BoardComponentsDevPages" ,
18+ fileName : "main" ,
19+ } ,
20+ outDir : "lib/dev-pages/bundle" ,
21+ rollupOptions : {
22+ external : [
23+ resolve ( __dirname , "lib/components" ) ,
24+ "@cloudscape-design/collection-hooks" ,
25+ "@cloudscape-design/components" ,
26+ "@cloudscape-design/component-toolkit" ,
27+ "@cloudscape-design/design-tokens" ,
28+ "@cloudscape-design/global-styles/index.css" ,
29+ ] ,
30+ } ,
31+ } ,
32+ } ) ;
You can’t perform that action at this time.
0 commit comments