generated from front-of-house/monorepo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6e0e594
commit e069f39
Showing
5 changed files
with
34 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@svbstrate/react-native": patch | ||
--- | ||
|
||
Attempt to fix React Native import issues by publishing ESM exports. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
const path = require("path"); | ||
|
||
require("esbuild").buildSync({ | ||
const options = { | ||
entryPoints: ["lib/index.tsx"], | ||
outdir: path.join(__dirname, "../dist"), | ||
bundle: true, | ||
platform: "node", | ||
target: "es2015", | ||
minify: true, | ||
sourcemap: true, | ||
minify: true, | ||
logLevel: "info", | ||
external: ["react", "react-native"], | ||
}; | ||
|
||
require("esbuild").buildSync({ | ||
format: "cjs", | ||
outfile: path.join(__dirname, "../dist/index.cjs.js"), | ||
...options, | ||
}); | ||
|
||
require("esbuild").buildSync({ | ||
format: "esm", | ||
outfile: path.join(__dirname, "../dist/index.esm.js"), | ||
...options, | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.