@storybook/angular 10.1.0-alpha.10 → 10.1.0-alpha.12

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,59 +1,50 @@
1
- import CJS_COMPAT_NODE_URL_2x62fuu3g38 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_2x62fuu3g38 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_2x62fuu3g38 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_qv1b0zi7im from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_qv1b0zi7im from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_qv1b0zi7im from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_2x62fuu3g38.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_2x62fuu3g38.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_2x62fuu3g38.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_qv1b0zi7im.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_qv1b0zi7im.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_qv1b0zi7im.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
- import {
13
- __name
14
- } from "../_node-chunks/chunk-CE4PZTEJ.js";
15
12
 
16
13
  // src/server/framework-preset-angular-ivy.ts
17
14
  import { join } from "node:path";
18
15
  import { createRequire } from "node:module";
19
16
  var require2 = createRequire(import.meta.url);
20
17
  function loadEsmModule(modulePath) {
21
- return new Function("modulePath", `return import(modulePath);`)(modulePath);
18
+ return new Function("modulePath", "return import(modulePath);")(modulePath);
22
19
  }
23
- __name(loadEsmModule, "loadEsmModule");
24
- var runNgcc = /* @__PURE__ */ __name(async () => {
20
+ var runNgcc = async () => {
25
21
  let ngcc;
26
22
  try {
27
23
  ngcc = require2("@angular/compiler-cli/ngcc");
28
- } catch (error) {
24
+ } catch {
29
25
  ngcc = await loadEsmModule("@angular/compiler-cli/ngcc");
30
26
  }
31
27
  ngcc.process({
32
28
  // should be async: true but does not work due to
33
29
  // https://github.com/storybookjs/storybook/pull/11157/files#r615413803
34
- async: false,
30
+ async: !1,
35
31
  basePath: join(process.cwd(), "node_modules"),
36
32
  // absolute path to node_modules
37
- createNewEntryPointFormats: true,
33
+ createNewEntryPointFormats: !0,
38
34
  // --create-ivy-entry-points
39
- compileAllFormats: false
35
+ compileAllFormats: !1
40
36
  // --first-only
41
37
  });
42
- }, "runNgcc");
43
- var webpack = /* @__PURE__ */ __name(async (webpackConfig, options) => {
44
- const framework = await options.presets.apply("framework");
45
- const angularOptions = typeof framework === "object" ? framework.options : {};
46
- if (angularOptions.enableIvy === false) {
47
- return webpackConfig;
48
- }
49
- return {
38
+ }, webpack = async (webpackConfig, options) => {
39
+ let framework = await options.presets.apply("framework");
40
+ return (typeof framework == "object" ? framework.options : {}).enableIvy === !1 ? webpackConfig : {
50
41
  ...webpackConfig,
51
42
  resolve: {
52
43
  ...webpackConfig.resolve,
53
44
  mainFields: ["browser", "module", "main"]
54
45
  }
55
46
  };
56
- }, "webpack");
47
+ };
57
48
  export {
58
49
  runNgcc,
59
50
  webpack
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/angular",
3
- "version": "10.1.0-alpha.10",
3
+ "version": "10.1.0-alpha.12",
4
4
  "description": "Storybook for Angular: Develop, document, and test UI components in isolation",
5
5
  "keywords": [
6
6
  "storybook",
@@ -61,7 +61,7 @@
61
61
  "prep": "jiti ../../../scripts/build/build-package.ts"
62
62
  },
63
63
  "dependencies": {
64
- "@storybook/builder-webpack5": "10.1.0-alpha.10",
64
+ "@storybook/builder-webpack5": "10.1.0-alpha.12",
65
65
  "@storybook/global": "^5.0.0",
66
66
  "telejson": "8.0.0",
67
67
  "ts-dedent": "^2.0.0",
@@ -81,7 +81,7 @@
81
81
  "@angular/forms": "^19.1.1",
82
82
  "@angular/platform-browser": "^19.1.1",
83
83
  "@angular/platform-browser-dynamic": "^19.1.1",
84
- "@storybook/core-webpack": "10.1.0-alpha.10",
84
+ "@storybook/core-webpack": "10.1.0-alpha.12",
85
85
  "@types/node": "^22.0.0",
86
86
  "empathic": "^2.0.0",
87
87
  "rimraf": "^6.0.1",
@@ -103,7 +103,7 @@
103
103
  "@angular/platform-browser": ">=18.0.0 < 21.0.0",
104
104
  "@angular/platform-browser-dynamic": ">=18.0.0 < 21.0.0",
105
105
  "rxjs": "^6.5.3 || ^7.4.0",
106
- "storybook": "^10.1.0-alpha.10",
106
+ "storybook": "^10.1.0-alpha.12",
107
107
  "typescript": "^4.9.0 || ^5.0.0",
108
108
  "zone.js": ">=0.14.0"
109
109
  },
@@ -122,5 +122,5 @@
122
122
  "access": "public"
123
123
  },
124
124
  "builders": "builders.json",
125
- "gitHead": "a8e7fd8a655c69780bc20b9749d2699e45beae17"
125
+ "gitHead": "a8e7fd8a655c69780bc20b9749d2699e45beae1l"
126
126
  }