@into-mini/sfc-split-plugin 0.5.5 → 0.5.7

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.
Files changed (2) hide show
  1. package/dist/index.mjs +5 -4
  2. package/package.json +3 -3
package/dist/index.mjs CHANGED
@@ -1,7 +1,8 @@
1
1
  import { fileURLToPath } from 'node:url';
2
2
  import { AddWxsPlugin } from "./plugin/add-wxs.mjs";
3
- // import { ExposeEntryNamePlugin } from './plugin/expose-entry.mts';
3
+ import { ExposeEntryNamePlugin } from "./plugin/expose-entry.mjs";
4
4
  import { EntryRenamePlugin } from "./plugin/entry-rename.mjs";
5
+ import { MinaRuntimeWebpackPlugin } from "./plugin/mina-runtime.mjs";
5
6
  import MiniCssExtractPlugin from 'mini-css-extract-plugin';
6
7
  export const COMPONENT_ROOT = 'as-components';
7
8
  function reach(path) {
@@ -67,7 +68,7 @@ export class SfcSplitPlugin {
67
68
  resourceQuery: [/type=config&lang=json/],
68
69
  type: 'asset/resource',
69
70
  generator: {
70
- filename: '[path][hash:8].json',
71
+ filename: '[name][hash:8].json',
71
72
  },
72
73
  loader: theLoader,
73
74
  }, {
@@ -87,9 +88,9 @@ export class SfcSplitPlugin {
87
88
  const { type } = this.options;
88
89
  if (type) {
89
90
  new AddWxsPlugin().apply(compiler);
90
- // new MinaRuntimeWebpackPlugin().apply(compiler);
91
+ new MinaRuntimeWebpackPlugin().apply(compiler);
91
92
  // new SfcSplitPluginBase({ tagMatcher, preserveTap }).apply(compiler);
92
- // new ExposeEntryNamePlugin().apply(compiler);
93
+ new ExposeEntryNamePlugin().apply(compiler);
93
94
  new EntryRenamePlugin({
94
95
  issuer: /\.vue$/,
95
96
  test: /\.wxml|json/,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@into-mini/sfc-split-plugin",
3
- "version": "0.5.5",
3
+ "version": "0.5.7",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "loader",
@@ -33,8 +33,8 @@
33
33
  "webpack-virtual-modules": "^0.6.2",
34
34
  "yaml": "^2.8.2",
35
35
  "@into-mini/clsx": "^0.1.0",
36
- "@into-mini/sfc-split-loader": "^0.2.4",
37
- "@into-mini/sfc-transformer": "^0.6.0",
36
+ "@into-mini/sfc-split-loader": "^0.2.6",
37
+ "@into-mini/sfc-transformer": "^0.6.1",
38
38
  "@into-mini/wxml-loader": "^0.0.0"
39
39
  },
40
40
  "peerDependencies": {