Skip to content

Commit

Permalink
fix(@kkt/ncc): Fix $ is not defined (#357).
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Feb 28, 2022
1 parent de7f650 commit 022aeef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions example/bundle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"build": "kkt build",
"released": "npm run bundle && npm run bundle:min",
"bundle": "ncc build src/components/button/index.jsx --target web --library Button",
"bundle:watch": "ncc watch src/components/button/index.jsx --target web --library Button",
"bundle:min": "ncc build src/components/button/index.jsx --target web --library Button -m"
},
"repository": {
Expand Down
3 changes: 3 additions & 0 deletions packages/ncc/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env node

process.env.FAST_REFRESH = 'false';

import minimist from 'minimist';
import path from 'path';
import fs from 'fs-extra';
Expand Down

0 comments on commit 022aeef

Please sign in to comment.