@mrpelz/boilerplate-preact 9.2.0 → 9.2.2

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": "@mrpelz/boilerplate-preact",
3
- "version": "9.2.0",
3
+ "version": "9.2.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/mrpelz/boilerplate.git",
@@ -115,9 +115,7 @@ EOF
115
115
  make_config tsconfig.json "$(
116
116
  cat <<EOF
117
117
  {
118
- "compilerOptions": {
119
- "outDir": "dist",
120
- },
118
+ "compilerOptions": {},
121
119
  "extends": "$BOILERPLATE_PREACT_MODULE_NAME/tsconfig.json",
122
120
  "include": ["src/**/*"]
123
121
  }
package/webpack.config.js CHANGED
@@ -9,6 +9,13 @@ import config, {
9
9
  const { entry } = config;
10
10
  if (entry) entry[0] = resolve(dirSrc, 'main.tsx');
11
11
 
12
+ config.resolve = {
13
+ extensionAlias: {
14
+ '.js': ['.ts', '.tsx', '.js'],
15
+ '.mjs': ['.mts', '.mjs'],
16
+ },
17
+ };
18
+
12
19
  config.module?.rules?.push({
13
20
  exclude: /node_modules/,
14
21
  test: /\.tsx$/i,
@@ -22,5 +29,6 @@ config.module?.rules?.push({
22
29
  ],
23
30
  });
24
31
 
25
- /** @type {import('webpack').Configuration | import('webpack').WebpackOptionsNormalized} */
32
+ // @ts-ignore
33
+ /** @type {import('@mrpelz/boilerplate-dom/webpack.config.js').ConfigurationExtended} */
26
34
  export default config;