Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

@parcel/transformer-webextension Manifest v3, oauth2 error #8017

Closed
itslooklike opened this issue Apr 28, 2022 · 2 comments
Closed

@parcel/transformer-webextension Manifest v3, oauth2 error #8017

itslooklike opened this issue Apr 28, 2022 · 2 comments

Comments

@itslooklike
Copy link
Contributor

馃悰 bug report

馃帥 Configuration (.babelrc, package.json, cli command)

{
  "extends": "@parcel/config-webextension"
}

馃 Expected Behavior

Success build

馃槸 Current Behavior

give error on oauth2 field in manifest.json

image

馃拋 Possible Solution

add support for field

馃敠 Context

https://developer.chrome.com/docs/apps/app_identity/

馃捇 Code Sample

{
  "manifest_version": 3,
  "name": "Sample Web Extension",
  "version": "0.0.1",
  "permissions": ["tabs", "storage", "identity", "identity.email"],
  "background": {
    "service_worker": "apps/background.ts",
    "type": "module"
  },
  "action": {
    "default_popup": "apps/popup/index.html"
  },
  "chrome_url_overrides": {
    "newtab": "apps/new-tab/index.html"
  },
  "oauth2": {
    "client_id": "__CLIENT_ID_HERE__",
    "scopes": [
      "profile",
      "email",
      "https://www.googleapis.com/auth/userinfo.email",
      "https://www.googleapis.com/auth/userinfo.profile"
    ]
  }
}

馃實 Your Environment

Software Version(s)
Parcel 2.5.0
@parcel/config-webextension 2.5.0
Node 17.9
npm/Yarn yarn 1.22.18
Operating System macos 12.3.1
@mischnic
Copy link
Member

That would have to be added here:

@101arrowz
Copy link
Member

Resolved by #8037.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants