Skip to content

Commit

Permalink
feat: log the target when running plasmo build or plasmo dev (#1053)
Browse files Browse the repository at this point in the history
This logs the `--target` when running `plasmo build` or `plasmo
dev`, making it easy to see at a glance what browser target you
are building for.

This can help to avoid surprises and confusion if the thing you
think is getting built isn't getting built!
  • Loading branch information
timrogers committed Aug 26, 2024
1 parent bed1eec commit 05a3a77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cli/plasmo/src/commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ async function build() {

const bundleConfig = getBundleConfig()

iLog("Building for target:", bundleConfig.target)

const plasmoManifest = await createManifest(bundleConfig)

const bundler = await createParcelBuilder(plasmoManifest, {
Expand Down
2 changes: 2 additions & 0 deletions cli/plasmo/src/commands/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ async function dev() {

const bundleConfig = getBundleConfig()

iLog("Building for target:", bundleConfig.target)

const plasmoManifest = await createManifest(bundleConfig)

const projectWatcher = await createProjectWatcher(plasmoManifest)
Expand Down

0 comments on commit 05a3a77

Please sign in to comment.