Skip to content

Migrate to Vite #225#228

Merged
SharonStrats merged 11 commits into
stagingfrom
feat/migrate-vite
Jul 16, 2026
Merged

Migrate to Vite #225#228
SharonStrats merged 11 commits into
stagingfrom
feat/migrate-vite

Conversation

@SharonStrats

@SharonStrats SharonStrats commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Migrate to Vite

Note: The toolkit needs to be published for the start to work.

@SharonStrats SharonStrats self-assigned this Jul 5, 2026
Copilot AI review requested due to automatic review settings July 5, 2026 10:11
@SharonStrats SharonStrats added the enhancement New feature or request label Jul 5, 2026
@SharonStrats SharonStrats moved this to In review in SolidOS NLNet UI Jul 5, 2026
@SharonStrats SharonStrats linked an issue Jul 5, 2026 that may be closed by this pull request
@SharonStrats
SharonStrats changed the base branch from main to staging July 5, 2026 10:11
@SharonStrats
SharonStrats requested a review from NoelDeMartin July 5, 2026 10:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the project’s build tooling from Webpack/Babel to Vite (via solidos-toolkit) and updates packaging outputs to the new dist/ bundle format.

Changes:

  • Removed Webpack/Babel configs and the old dev/ harness.
  • Added vite.config.mts and switched build scripts/output directory to Vite/dist.
  • Updated CI to run a shared “update deps” workflow and publish prereleases with OIDC permissions.

Reviewed changes

Copilot reviewed 11 out of 24 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
webpack.module.rules.mjs Removed Webpack loader rules as part of the Vite migration.
webpack.dev.config.mjs Removed Webpack dev-server configuration.
webpack.config.mjs Removed Webpack production build configs (UMD/min builds).
vite.config.mts Added Vite configuration using solidos-toolkit build helpers.
tsconfig.json Updated TS module resolution/output directory to align with Vite dist/.
src/index.ts Added an explicit package entry module re-exporting the pane.
package.json Updated scripts/entrypoints/exports and dependency layout for Vite builds.
dist/index.esm.js Added built ESM entry output.
dist/index.cjs.js Added built CJS entry output.
dist/index.d.ts Added generated type entry output.
dist/index.d.ts.map Added type map for the entry declarations.
dist/folderPane.esm.js Added built ESM implementation output.
dist/folderPane.esm.js.map Added source map for ESM output.
dist/folderPane.cjs.js Added built CJS implementation output.
dist/folderPane.cjs.js.map Added source map for CJS output.
dist/folderPane.d.ts Added generated declarations for the implementation module.
dist/folderPane.d.ts.map Added type map for implementation declarations.
dist/_virtual/_rolldown/runtime.cjs.js Added bundler runtime helper output.
dev/index.js Removed the old Webpack-based local dev harness JS entry.
dev/index.html Removed the old dev-server HTML entry.
dev/dev-global.css Removed dev-only global CSS used by the old harness.
dev/context.js Removed dev harness context wiring.
babel.config.mjs Removed Babel configuration no longer used with Vite.
.github/workflows/ci.yml Updated CI triggers and added reusable dependency update + publish permission changes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread package.json Outdated
Comment thread package.json
Comment on lines 58 to 76
"devDependencies": {
"@babel/core": "^7.28.6",
"@babel/preset-env": "^7.28.6",
"@babel/preset-typescript": "^7.28.5",
"@eslint/eslintrc": "^3.3.3",
"@eslint/js": "^10.0.1",
"@types/node": "^25.0.10",
"@typescript-eslint/parser": "^8.53.1",
"babel-loader": "^10.1.1",
"copy-webpack-plugin": "^14.0.0",
"css-loader": "^7.1.4",
"eslint": "^10.0.1",
"globals": "^17.1.0",
"html-webpack-plugin": "^5.6.6",
"node-polyfill-webpack-plugin": "^4.1.0",
"style-loader": "^4.0.0",
"terser-webpack-plugin": "^5.4.0",
"typescript": "^5.9.3",
"webpack": "^5.96.1",
"webpack-cli": "^6.0.1",
"webpack-dev-server": "^5.2.3"
"@vitest/coverage-v8": "^4.0.18",
"solidos-toolkit": "dev"
},
"dependencies": {
"patch-package": "^8.0.1",
"vite": "^8.0.16",
"vitest": "^4.0.18",
"vitest-axe": "^0.1.0",
"rdflib": "2.3.9",
"solid-logic": "4.0.8-0",
"solid-ui": "3.1.3-4"
"solid-logic": "4.0.8-1",
"solid-ui": "3.1.3-9"
},
Comment thread package.json
Comment thread src/folderPane.ts Outdated
)
}

function simpleRow (obj) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if I should do this or maybe just keep the old dev environment for folderPane.ts or should the toolkit be modified?

@SharonStrats SharonStrats Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I wasn't thinking this doesn't work completely I just did further testing. Because it shouldn't just display it needs the outliner to show the content of the containers etc... so either we need to go back to dev or change the toolkit. I'm going to leave this until we discuss or comment in this PR for discussion.

@NoelDeMartin NoelDeMartin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall, but the dist files shouldn't be tracked in the repo.

Comment thread dist/_virtual/_rolldown/runtime.cjs.js Outdated
Comment thread src/folderPane.ts Outdated
@SharonStrats

Copy link
Copy Markdown
Contributor Author

Oops .

What do you think we should do about the dev environment @NoelDeMartin

@NoelDeMartin
NoelDeMartin self-requested a review July 16, 2026 11:23

@NoelDeMartin NoelDeMartin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is ready now!

@SharonStrats SharonStrats moved this from In review to Ready in SolidOS NLNet UI Jul 16, 2026
@SharonStrats
SharonStrats merged commit a1efc5c into staging Jul 16, 2026
8 checks passed
@github-project-automation github-project-automation Bot moved this from Ready to Done in SolidOS NLNet UI Jul 16, 2026
@SharonStrats
SharonStrats deleted the feat/migrate-vite branch July 16, 2026 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Migrate to Vite

3 participants