@pushwoosh/frontend-builder-engine 0.1.2 → 0.1.4

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/lib/tsconfig.json CHANGED
@@ -37,15 +37,7 @@
37
37
  "emitDecoratorMetadata": true,
38
38
  /* ----- Module Resolution Options ----- */
39
39
  "moduleResolution": "node",
40
- "baseUrl": "./",
41
- "paths": {
42
- "~/src": [
43
- "./src"
44
- ],
45
- "~/src/*": [
46
- "./src/*"
47
- ]
48
- }
40
+ "baseUrl": "./"
49
41
  },
50
42
  "include": [
51
43
  "./src/**/*",
@@ -2,12 +2,14 @@ const path = require('path');
2
2
  const dotenv = require('dotenv');
3
3
  const HtmlWebpackPlugin = require('html-webpack-plugin');
4
4
  const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
5
+ const { loadPushwooshConfig } = require('./helpers');
5
6
  // const { loadTsConfig } = require('./lib-build-tsconfig');
6
7
 
7
8
  function getConfig() {
8
9
  const projectPath = process.cwd();
9
10
  const { parsed = {} } = dotenv.config();
10
- return {
11
+ const pushwooshConfig = loadPushwooshConfig();
12
+ const config = {
11
13
  target: 'web',
12
14
  mode: 'development',
13
15
  entry: './playground/index.tsx', // Убедитесь, что этот путь указывает на ваш точечный файл входа
@@ -40,7 +42,6 @@ function getConfig() {
40
42
  },
41
43
  exclude: /node_modules/,
42
44
  },
43
- // Добавьте другие правила здесь, если необходимо
44
45
  ],
45
46
  },
46
47
  plugins: [
@@ -56,6 +57,10 @@ function getConfig() {
56
57
  port: parsed.PLAYGROUND_PORT || 8080,
57
58
  },
58
59
  };
60
+ if (pushwooshConfig.playgroundWebpack) {
61
+ return pushwooshConfig.playgroundWebpack(config);
62
+ }
63
+ return config;
59
64
  }
60
65
 
61
66
  module.exports = getConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/frontend-builder-engine",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Pushwoosh frontend builder engine",
5
5
  "main": "./lib/pushwoosh-frontend-builder-engine.js",
6
6
  "scripts": {