-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
type: question or discussionQuestion or discussionQuestion or discussion
Description
- I confirm that this is an issue rather than a question.
Bug report
index.js in plugin:
const { resolve } = require('path')
module.exports = (options, ctx) => ({
name: 'share',
define: {
ShareOption: { a: 1 }
},
enhanceAppFiles: [resolve(__dirname, './enhanceAppFile.js')],
globalUIComponents: 'ShareCtn'
});// other vue files
console.log(ShareOption) // got {a:1} not '{a:1}'Steps to reproduce
What is expected?
What is actually happening?
Other relevant information
- Output of
npx vuepress infoin my VuePress project:
Metadata
Metadata
Assignees
Labels
type: question or discussionQuestion or discussionQuestion or discussion
