Skip to content

Commit

Permalink
fix(core): sub entry export for react-native (#1350)
Browse files Browse the repository at this point in the history
* fix(core) sub entry export for react-native

* Update packages/core/compile.js

Co-authored-by: Martin Chrástek <chrastek12@gmail.com>
  • Loading branch information
timofei-iatsenko and Martin005 authored Jan 19, 2023
1 parent 6cd6ced commit c178ce3
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
File renamed without changes.
6 changes: 3 additions & 3 deletions packages/core/compile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* this is used to point to the right source when development with workspaces
* This entry is for old runtimes which do not support `exports` field in package.json
* https://github.com/facebook/metro/issues/670
*/
// eslint-disable-next-line import/no-unresolved
export * from "./build/compile"
module.exports = require("./build/cjs/compile.js")
1 change: 0 additions & 1 deletion packages/core/npm/compile.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/core/npm/index.js

This file was deleted.

3 changes: 2 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
"files": [
"LICENSE",
"README.md",
"build/"
"build/",
"compile.js"
],
"dependencies": {
"@babel/runtime": "^7.11.2",
Expand Down
2 changes: 1 addition & 1 deletion scripts/build/bundles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const bundles: readonly BundleDef[] = [
{
type: BundleType.UNIVERSAL,
packageName: "core",
entry: 'compile.entry.js',
entry: 'compile.entry.ts',
label: 'compile',
},
{
Expand Down

1 comment on commit c178ce3

@vercel
Copy link

@vercel vercel bot commented on c178ce3 Jan 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

js-lingui – ./

js-lingui-git-main-lingui.vercel.app
js-lingui.vercel.app
js-lingui-lingui.vercel.app
lingui.js.org

Please sign in to comment.