Skip to content

Commit 4527ed9

Browse files
committed
Build: Try to update browser build script to be more compatible
1 parent cf31a76 commit 4527ed9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal-packages/scripts/src/tasks/build-browser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ import { resolve } from 'path';
88
export async function build(options = {}) {
99
const {
1010
baseDir = process.cwd(), // Root directory of the package
11-
target = ['esnext'], // JavaScript target
11+
target = ['chrome80', 'edge80', 'firefox78','safari14', 'ios14', 'opera67'], // JavaScript target
1212
minify = true, // Whether to minify
1313
sourcemap = true, // Whether to generate sourcemaps
1414
format = 'esm', // Module format
1515
outDir = 'dist/browser', // Output directory
1616
outFile = `index.min.js`, // Output filename
1717
entrypoint = null, // Custom entrypoint override
18-
platform = 'neutral', // Target platform
18+
platform = 'browser', // Target platform
1919
logLevel = 'info', // log level
2020
} = options;
2121

0 commit comments

Comments
 (0)