Skip to content

Commit

Permalink
Set 'target' explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
makenowjust committed Jan 16, 2023
1 parent 219ff13 commit bb6200b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/eslint-plugin-redos/scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const main = async () => {
entryPoints: ["src/main.ts"],
bundle: true,
format: "cjs",
target: "es2016",
platform: "node",
plugins: [makeAllPackagesExternalPlugin],
outfile: "lib/main.js",
Expand Down
3 changes: 3 additions & 0 deletions packages/recheck/scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const inlineWorkerPlugin: Plugin = {
entryPoints: [args.path],
inject: [`src/inject/worker-${initialOptions.platform}.ts`],
format: "iife",
target: "es2016",
write: false,
plugins: plugins?.filter((plugin) => plugin !== inlineWorkerPlugin),
sourcemap: isProduction ? false : "inline",
Expand Down Expand Up @@ -66,6 +67,7 @@ const main = async () => {
bundle: true,
minify: isProduction,
format: "cjs",
target: "es2016",
logLevel: "error",
platform: "node",
plugins: [makeAllPackagesExternalPlugin, inlineWorkerPlugin],
Expand All @@ -76,6 +78,7 @@ const main = async () => {
bundle: true,
minify: isProduction,
format: "cjs",
target: "es2016",
logLevel: "error",
platform: "browser",
plugins: [makeAllPackagesExternalPlugin, inlineWorkerPlugin],
Expand Down

0 comments on commit bb6200b

Please sign in to comment.