-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: switch to esbuild for browser based building
- Loading branch information
1 parent
7512c37
commit 2e58ee6
Showing
7 changed files
with
245 additions
and
29 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 @@ | ||
--- | ||
'remote-storage': patch | ||
--- | ||
|
||
Switches to esbuild for browser-based building |
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 @@ | ||
pnpm esbuild src/index.ts --bundle --minify --target=chrome58 --minify-identifiers=false > dist/remote-storage.min.js |
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,12 @@ | ||
let { build } = require('esbuild') | ||
let files = ['src/index.ts'] | ||
|
||
build({ | ||
entryPoints: files, | ||
outdir: './dist', | ||
minify: true, | ||
bundle: true, | ||
minifyWhitespace: true, | ||
minifyIdentifiers: false, | ||
target: 'chrome58', | ||
}).catch(() => process.exit(1)) |
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,2 +1,6 @@ | ||
export { RemoteStorage } from './core/remote-storage' | ||
export * from './core/constants' | ||
|
||
import { RemoteStorage } from './core/remote-storage' | ||
|
||
globalThis.RemoteStorage = RemoteStorage |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.