-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade yoga-layout to latest version (#2105)
* upgrade yoga-layout * move fork to dev dependency * remove duplicate * use `yoga-wasm-web` pkg * add changeset
- Loading branch information
Showing
49 changed files
with
87 additions
and
21,170 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 @@ | ||
--- | ||
'@react-pdf/yoga': major | ||
--- | ||
|
||
migrate from yoga-layout-prebuilt to yoga-wasm-web |
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 was deleted.
Oops, something went wrong.
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 +1 @@ | ||
!dist | ||
dist |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,3 +1,3 @@ | ||
import * as yoga from 'yoga-layout'; | ||
import { YogaStatic } from 'yoga-wasm-web'; | ||
|
||
export = yoga; | ||
export default YogaStatic; |
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,4 @@ | ||
// eslint-disable-next-line import/no-unresolved | ||
import initYoga from 'yoga-wasm-web/asm'; | ||
|
||
export default initYoga(); |
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 |
---|---|---|
|
@@ -5,8 +5,8 @@ | |
"license": "MIT", | ||
"author": "Diego Muracciole <[email protected]>", | ||
"homepage": "https://github.com/diegomura/react-pdf#readme", | ||
"main": "./src/dist/entry-browser.js", | ||
"module": "./src/dist/entry-browser.es.js", | ||
"main": "dist/index.js", | ||
"module": "dist/index.esm.js", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
|
@@ -15,14 +15,14 @@ | |
}, | ||
"scripts": { | ||
"test": "jest", | ||
"build": "./build.sh && rollup -c", | ||
"postbuild": "node ./postbuild.js" | ||
"build": "rollup -c" | ||
}, | ||
"files": [ | ||
"src", | ||
"dist", | ||
"index.d.ts" | ||
], | ||
"dependencies": { | ||
"@types/yoga-layout": "^1.9.3" | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"yoga-wasm-web": "~0.3.0" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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,16 +1,18 @@ | ||
import commonjs from '@rollup/plugin-commonjs' | ||
|
||
const input = './src/dist/entry-browser.js'; | ||
|
||
const getPlugins = () => [ | ||
commonjs(), | ||
]; | ||
import commonjs from '@rollup/plugin-commonjs'; | ||
import nodeResolve from '@rollup/plugin-node-resolve'; | ||
|
||
export default { | ||
input, | ||
output: { | ||
file: 'src/dist/entry-browser.es.js', | ||
format: 'es', | ||
}, | ||
plugins: getPlugins(), | ||
} | ||
input: 'index.js', | ||
output: [ | ||
{ | ||
file: 'dist/index.js', | ||
exports: 'auto', | ||
format: 'cjs', | ||
}, | ||
{ | ||
file: 'dist/index.esm.js', | ||
format: 'esm', | ||
}, | ||
], | ||
plugins: [commonjs(), nodeResolve()], | ||
}; |
Oops, something went wrong.