-
Hi, I would like to port some features of this plugin for VuePress1 : vuepress-plugin-vue-example, which uses In the docs, I read: Where can I read more about that |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It would be listed in the Node API documentation, which is not finished yet. In fact, the clientDynamicModules: () => ({
name: 'foo.js',
content: 'export default {}',
}) equals to: async onPrepared(app) {
await app.writeTemp('foo.js', 'export default {}')
} You can use it in client via import foo from '@temp/foo' They are literally equal, so that's the reason why we remove the
|
Beta Was this translation helpful? Give feedback.
It would be listed in the Node API documentation, which is not finished yet.
In fact, the
clientDynamicModules
is just writing a temp file, i.e.:equals to:
You can use it in client via
@temp
alias:They are literally equal, so that's the reason why we remove the
clientDynamicModules
hook in v2 - it's redundant.