swico 1.5.0-beta.2 → 1.5.0-beta.3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swico",
3
- "version": "1.5.0-beta.2",
3
+ "version": "1.5.0-beta.3",
4
4
  "description": "Simple, efficient, and practical front-end framework",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -75,6 +75,9 @@ export default function ({ projectPath, entryPath, env, customConfig }: GlobalDa
75
75
  extensions: string[];
76
76
  alias: {
77
77
  '@': string;
78
+ react: string;
79
+ 'react-dom': string;
80
+ 'react-router-dom': string;
78
81
  };
79
82
  };
80
83
  externals: any;
@@ -280,7 +280,7 @@ function default_1(_a) {
280
280
  },
281
281
  resolve: {
282
282
  extensions: ['.ts', '.tsx', '.js', '.jsx', '.json'],
283
- alias: __assign({ '@': path_1.default.join(projectPath, '/src') }, getCustomAliasConfig())
283
+ alias: __assign({ '@': path_1.default.join(projectPath, '/src'), react: path_1.default.dirname(require.resolve('react/package.json')), 'react-dom': path_1.default.dirname(require.resolve('react-dom/package.json')), 'react-router-dom': path_1.default.dirname(require.resolve('react-router-dom/package.json')) }, getCustomAliasConfig())
284
284
  },
285
285
  externals: customConfig.base.externals,
286
286
  plugins: __spreadArray(__spreadArray(__spreadArray([], basicPlugins, true), [
@@ -99,6 +99,7 @@ export default function ({ projectPath, entryPath, env, customConfig }: GlobalDa
99
99
  alias: {
100
100
  '@': string;
101
101
  vue: string;
102
+ 'vue-router': string;
102
103
  };
103
104
  };
104
105
  externals: any;
@@ -297,7 +297,7 @@ function default_1(_a) {
297
297
  },
298
298
  resolve: {
299
299
  extensions: ['.ts', '.js', '.vue', '.json'],
300
- alias: __assign({ '@': path_1.default.join(projectPath, '/src'), vue: 'vue/dist/vue.esm-bundler.js' }, getCustomAliasConfig())
300
+ alias: __assign({ '@': path_1.default.join(projectPath, '/src'), vue: 'vue/dist/vue.esm-bundler.js', 'vue-router': path_1.default.dirname(require.resolve('vue-router/package.json')) }, getCustomAliasConfig())
301
301
  },
302
302
  externals: customConfig.base.externals,
303
303
  plugins: __spreadArray(__spreadArray(__spreadArray([], basicPlugins, true), [