index.js — vue Source File
Architecture documentation for index.js, a javascript file in the vue codebase.
Entity Profile
Source Code
try {
var vueVersion = require('vue').version
} catch (e) {}
var packageName = require('./package.json').name
var packageVersion = require('./package.json').version
if (vueVersion && vueVersion !== packageVersion) {
throw new Error(
'\n\nVue packages version mismatch:\n\n' +
'- vue@' +
vueVersion +
'\n' +
'- ' +
packageName +
'@' +
packageVersion +
'\n\n' +
'This may cause things to work incorrectly. Make sure to use the same version for both.\n'
)
}
if (process.env.NODE_ENV === 'production') {
module.exports = require('./build.prod.js')
} else {
module.exports = require('./build.dev.js')
}
Source
Frequently Asked Questions
What does index.js do?
index.js is a source file in the vue codebase, written in javascript.
Where is index.js in the architecture?
index.js is located at packages/server-renderer/index.js (directory: packages/server-renderer).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free