Skip to content

Commit

Permalink
chore: 支持 umd 格式
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxingkang committed Feb 1, 2024
1 parent b7cd686 commit 50f1c03
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .fatherrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,14 @@ export default defineConfig({
output: 'lib',
transformer: 'esbuild',
},
umd: {
name: 'ReactMapboxGl',
output: 'dist',
externals: {
react: 'React',
'react-dom': 'ReactDOM',
'mapbox-gl': 'mapboxgl',
},
},
platform: 'browser',
});
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"files": [
"lib",
"es",
"dist",
"src"
],
"sideEffects": [
Expand Down

0 comments on commit 50f1c03

Please sign in to comment.