@omnia/tooling-vue 8.0.51-vnext → 8.0.52-vnext

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ import { Configuration } from 'webpack';
2
2
  import { BuildOptions } from '@omnia/tooling-composers';
3
3
  import { GuidValue } from "@omnia/fx-models";
4
4
  declare function bundleManifest(entries: any): Promise<void>;
5
- declare function createVueWebpackConfig(currentEntry: any, entries: any, bundleOutputDir: any, hotModuleReload?: any, viteHmrOption?: 'prebundle' | 'dynamic'): Configuration;
5
+ declare function createVueWebpackConfig(currentEntry: any, entries: any, bundleOutputDir: any, viteHmrOption?: 'prebundle' | 'dynamic'): Configuration;
6
6
  declare function processManifestGenerated(entries: any, outDir: any): void;
7
7
  declare function createCombinedManfest(omniaServiceId: any, manifestIds: any, targetManifestId: any, targetManifestName: any, outputDir: any): Promise<void>;
8
8
  declare function cleanUpComposer(): void;
@@ -786,7 +786,7 @@ function minifyBundles() {
786
786
  }
787
787
  });
788
788
  }
789
- function createVueWebpackConfig(currentEntry, entries, bundleOutputDir, hotModuleReload, viteHmrOption) {
789
+ function createVueWebpackConfig(currentEntry, entries, bundleOutputDir, viteHmrOption) {
790
790
  let buildOption = getBuildOption() || {};
791
791
  let isBundleCommonChunk = buildOption.bundleOptions && buildOption.bundleOptions.commonsChunk && buildOption.bundleOptions.commonsChunk.name;
792
792
  const extractCss = new MiniCssExtractPlugin({
@@ -891,7 +891,7 @@ function createVueWebpackConfig(currentEntry, entries, bundleOutputDir, hotModul
891
891
  mangleExports: false,
892
892
  concatenateModules: true,
893
893
  //moduleIds: 'natural' as any
894
- }, isBundleCommonChunk ? buildCommonChunk(entry) : {}),
894
+ }, isBundleCommonChunk && !viteHmrOption ? buildCommonChunk(entry) : {}),
895
895
  resolve: {
896
896
  modules: $.tooling.core.getWebpackResolveModules(),
897
897
  extensions: ['.ts', '.tsx', '.mjs', '.js', '.jsx', '.html', '.vue', '.less', '.styl'],
@@ -10,7 +10,7 @@ function createWebpackConfig(entries, option) {
10
10
  let bundleOptions = bundler.getBuildOption().bundleOptions;
11
11
  let outputDir = envUtils.getBundleOutputDirPath().replace(envUtils.getRootDirPath(), '');
12
12
  if (bundleOptions && bundleOptions.commonsChunk) {
13
- let config = bundler.createVueWebpackConfig(null, entries, outputDir, false, option);
13
+ let config = bundler.createVueWebpackConfig(null, entries, outputDir, option);
14
14
  config.stats = {
15
15
  entrypoints: false,
16
16
  chunks: false,
@@ -26,7 +26,7 @@ function createWebpackConfig(entries, option) {
26
26
  configs = Object.keys(entries).map(key => {
27
27
  var entry = {};
28
28
  entry[key] = entries[key];
29
- let config = bundler.createVueWebpackConfig(entry, entries, outputDir, false, option);
29
+ let config = bundler.createVueWebpackConfig(entry, entries, outputDir, option);
30
30
  config.stats = 'errors-only';
31
31
  config.watchOptions = {
32
32
  aggregateTimeout: 200
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/tooling-vue",
3
3
  "license": "MIT",
4
- "version": "8.0.51-vnext",
4
+ "version": "8.0.52-vnext",
5
5
  "description": "Used to bundle and serve manifests web component that build on Vue framework.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -19,8 +19,8 @@
19
19
  ],
20
20
  "author": "Precio Fishbone",
21
21
  "dependencies": {
22
- "@omnia/fx-models": "8.0.51-vnext",
23
- "@omnia/tooling-composers": "8.0.51-vnext",
22
+ "@omnia/fx-models": "8.0.52-vnext",
23
+ "@omnia/tooling-composers": "8.0.52-vnext",
24
24
  "@types/mousetrap": "1.5.34",
25
25
  "@types/quill": "1.3.6",
26
26
  "@types/zepto": "1.0.29",