Skip to content

Commit 9ad6485

Browse files
committed
fix: bridge loader fix
1 parent 5577446 commit 9ad6485

File tree

6 files changed

+30
-32
lines changed

6 files changed

+30
-32
lines changed

make-bridge-loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ async function nativescriptWebviewBridgeLoader(platform: 'ios' | 'android') {
1010

1111
const values = {
1212
// fetchPolyfill: await fsReadFile('./node_modules/whatwg-fetch/dist/fetch.umd.js', 'UTF-8'),
13-
promisePolyfill: await fsReadFile('./node_modules/promise-polyfill/dist/polyfill.js', 'UTF-8'),
13+
promisePolyfill: await fsReadFile('./www-src/node_modules/promise-polyfill/dist/polyfill.js', 'UTF-8'),
1414
webViewBridge: await fsReadFile(`./build/bridge.${platform}.js`, 'UTF-8'),
1515
metadataViewPort: await fsReadFile('./build/metadata-view-port.js', 'UTF-8'),
1616
};

packages/webview/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"typings": "./index.d.ts",
88
"scripts": {
99
"build": "npm run build.www && npm run tsc",
10-
"build.www": " cd ../../www-src && ../node_modules/.bin/rollup -c && cd .. && ./node_modules/.bin/ts-node make-bridge-loader",
10+
"build.www": " cd ../../www-src && rollup -c && cd .. && ts-node make-bridge-loader",
1111
"build.all": "npm run build && npm run build.angular",
1212
"build.angular": "../../node_modules/.bin/ng-packagr -p ../../src/webview/angular/package.json -c ../../src/webview/angular/tsconfig.json",
1313
"tsc": "../../node_modules/.bin/cpy '**/*.d.ts' '../../packages/webview' --parents --cwd=../../src/webview && ../../node_modules/.bin/tsc -skipLibCheck -d",

0 commit comments

Comments
 (0)