@elliemae/pui-cli 6.5.0 → 6.5.1

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.
@@ -1,7 +1,10 @@
1
- const webpack = require('webpack');
1
+ const {
2
+ DefinePlugin,
3
+ EnvironmentPlugin,
4
+ NormalModuleReplacementPlugin,
5
+ } = require('webpack');
2
6
  const MiniCssExtractPlugin = require('mini-css-extract-plugin');
3
7
  const CopyWebpackPlugin = require('copy-webpack-plugin');
4
- const ResolveTypeScriptPlugin = require('resolve-typescript-plugin').default;
5
8
  const {
6
9
  getAppConfig,
7
10
  isApp,
@@ -13,10 +16,10 @@ const IS_APP = isApp();
13
16
  const CWD = process.cwd();
14
17
 
15
18
  const getAdditionalPlugins = () => [
16
- new webpack.DefinePlugin({
19
+ new DefinePlugin({
17
20
  APP_CONFIG: getAppConfig(),
18
21
  }),
19
- new webpack.EnvironmentPlugin({
22
+ new EnvironmentPlugin({
20
23
  IS_APP,
21
24
  CWD,
22
25
  }),
@@ -37,11 +40,14 @@ const getAdditionalPlugins = () => [
37
40
  noErrorOnMissing: true,
38
41
  },
39
42
  {
40
- from: 'app/public',
43
+ from: 'public',
41
44
  noErrorOnMissing: true,
42
45
  },
43
46
  ],
44
47
  }),
48
+ new NormalModuleReplacementPlugin(/\.js$/, function (resource) {
49
+ resource.request = resource.request.replace('.js', '');
50
+ }),
45
51
  ];
46
52
 
47
53
  const getModuleRules = () => [
@@ -72,10 +78,6 @@ exports.webpackFinal = async (config, { configType }) => {
72
78
  config.resolve.alias = { ...config.resolve.alias, ...getAlias() };
73
79
  config.resolve.fallback = { ...config.resolve.fallback, crypto: false };
74
80
  config.resolve.extensions.push('.svg');
75
- config.resolve.plugins = [
76
- ...(config.resolve.plugins || []),
77
- new ResolveTypeScriptPlugin(),
78
- ];
79
81
  config.externals = config.externals || {};
80
82
  config.externals['@elliemae/pui-user-monitoring'] = 'emuiUserMonitoring';
81
83
  config.externals['@elliemae/pui-app-loader'] = 'emuiAppLoader';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-cli",
3
- "version": "6.5.0",
3
+ "version": "6.5.1",
4
4
  "private": false,
5
5
  "description": "ICE MT UI Platform CLI",
6
6
  "sideEffects": false,