Skip to content

Commit

Permalink
fix: fix clsx in dojo build
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Feb 14, 2023
1 parent 03d01b1 commit 8c3ab71
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
4 changes: 2 additions & 2 deletions _src/app/packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ require({
},
{
name: 'clsx',
location: '../node_modules/clsx/dist',
main: 'clsx.min',
location: './clsx',
main: 'index',
},
{
name: 'uuid',
Expand Down
1 change: 1 addition & 0 deletions build_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export NODE_ENV=production

echo 'starting babel'
node node_modules/@babel/cli/bin/babel.js --out-dir src/react-toastify node_modules/react-toastify/dist --config-file ./.babelrc
node node_modules/@babel/cli/bin/babel.js --out-file src/clsx/index.js node_modules/clsx/dist/clsx.m.js --config-file ./.babelrc

echo 'using esbuild to bundle service worker'
./node_modules/.bin/esbuild _src/ServiceWorker.js --bundle --outfile=src/ServiceWorker.js --define:process.env.REACT_APP_FIREBASE_CONFIG=$(npx dotenv -p REACT_APP_FIREBASE_CONFIG)
14 changes: 4 additions & 10 deletions profiles/build.profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ var profile = {
trees: [
['.', '.', /(\/\.)|(~$)|(widgets|resources)/]
]
}, {
name: 'clsx',
location: '../node_modules/clsx/dist',
trees: [
['.', '.', /(\/\.)|(~$)|(m\.js)/]
]
}, {
name: 'downshift',
location: '../node_modules/downshift/dist',
Expand Down Expand Up @@ -115,10 +109,10 @@ var profile = {
['.', '.', /(\/\.)|(.stories.js)/]
]
}, {
name: 'react-toastify',
trees: [
['.', '.', /(\/\.)|(index\.esm)/]
]
name: 'react-toastify',
trees: [
['.', '.', /(\/\.)|(index\.esm)/]
]
}, {
name: 'toaster',
location: './toaster',
Expand Down

0 comments on commit 8c3ab71

Please sign in to comment.