objectbox / objectbox/objectbox-dart

Support compiling in projects that support web

Open
#697 18 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Dart
Stars
1.2k
Forks
162
Avg merge
15m
Merged PRs (30d)
1

Description

Edit: Note that this is only about compiling packages that also support web when using ObjectBox on other platforms. For ObjectBox to support the web platform, see #185!


A project that imports object-box should be able to compile on web. As is, if we'd like a project to run on web, stubs must be created to avoid importing the package. This should be done within the package, so it will just work out of the box.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by reproducing a web compilation failure in a Dart project that imports objectbox, then inspect the package's platform handling; done means consumer projects compile for web without creating stubs while non-web support remains intact. Web platform support itself is out of scope per #185.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
build-system, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.