feat(runtime-core): hot module replacement

This commit is contained in:
Evan You
2019-12-12 12:42:21 -05:00
parent 3116b5d6c3
commit efe39db023
7 changed files with 108 additions and 2 deletions

View File

@@ -147,6 +147,8 @@ function createReplacePlugin(
__TEST__: isBundlerESMBuild ? `(process.env.NODE_ENV === 'test')` : false,
// If the build is expected to run directly in the browser (global / esm builds)
__BROWSER__: isBrowserBuild,
// is targeting bundlers?
__BUNDLER__: isBundlerESMBuild,
// support compile in browser?
__RUNTIME_COMPILE__: isRuntimeCompileBuild,
// support options?