Git Product home page Git Product logo

Comments (1)

meteorlxy avatar meteorlxy commented on August 23, 2024

Question 1

app.options.themeConfig

But it's not suggested to access themeConfig in plugins, a plugin should only consider it's own options. It should be theme's business to handle themeConfig and set corresponding plugin config.

Suggestion 1

Vitepress has migrated to <script setup>.

Pre-compile the standalone .ts files is a optimization, but a more complete solution cloud be pre-compiling the .vue files with rollup.

However, we currently don't implement it because the pallete support (pallete.styl and index.styl) and the default theme ejection (vuepress eject in vuepress 1, not impelemented in v2 yet).

In addition, typescript is not required as a dependency, because we have migrated to use esbuild-loader.

Suggestion 2

We have supported both module.exports and export default in plugins, so this should not be a problem anymore. You can check out our current plugins.

As for the mix of esm and cjs, yes it is annoying indeed, and that might be one of the reasons that vitepress is not going to support node-side plugins. Our current solution is to create tsconfig.cjs.json and tsconfig.esm.json to handle them.

(Hope the native esm support of nodejs can be enabled universally)

PWA and SEO plugins

I think I would migrate v1 PWA plugin first. Of course contributions are welcome.


Take your exam top priority. OSS is not so important lol.

I'll close this first. Feel free to comment if you have any further ideas

from core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.