@sprucelabs/heartwood-view-controllers 117.0.6 → 117.1.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.
@@ -58,6 +58,7 @@ export { default as buildActiveRecordList } from './builders/buildActiveRecordLi
58
58
  export { default as activeRecordCardAssert } from './tests/utilities/activeRecordCardAssert';
59
59
  export { default as MockActiveRecordCard } from './tests/MockActiveRecordCard';
60
60
  export { default as lockScreenAssert } from './tests/utilities/lockScreenAssert';
61
+ export { default as SpyViewControllerExporter } from './tests/SpyViewControllerExporter';
61
62
  export { default as PolarAreaViewController } from './viewControllers/PolarAreaViewController.vc';
62
63
  export { default as AuthenticatorImpl } from './auth/Authenticator';
63
64
  export * from './auth/Authenticator';
@@ -57,6 +57,7 @@ export { default as buildActiveRecordList } from './builders/buildActiveRecordLi
57
57
  export { default as activeRecordCardAssert } from './tests/utilities/activeRecordCardAssert.js';
58
58
  export { default as MockActiveRecordCard } from './tests/MockActiveRecordCard.js';
59
59
  export { default as lockScreenAssert } from './tests/utilities/lockScreenAssert.js';
60
+ export { default as SpyViewControllerExporter } from './tests/SpyViewControllerExporter.js';
60
61
  export { default as PolarAreaViewController } from './viewControllers/PolarAreaViewController.vc.js';
61
62
  export { default as AuthenticatorImpl } from './auth/Authenticator.js';
62
63
  export * from './auth/Authenticator.js';
@@ -0,0 +1,7 @@
1
+ import { Configuration } from 'webpack';
2
+ import ViewControllerExporter from '../viewControllers/ViewControllerExporter';
3
+ export default class SpyViewControllerExporter extends ViewControllerExporter {
4
+ static instance?: SpyViewControllerExporter;
5
+ constructor(cwd: string);
6
+ getConfig(): Configuration;
7
+ }
@@ -0,0 +1,10 @@
1
+ import ViewControllerExporter from '../viewControllers/ViewControllerExporter.js';
2
+ export default class SpyViewControllerExporter extends ViewControllerExporter {
3
+ constructor(cwd) {
4
+ super(cwd);
5
+ SpyViewControllerExporter.instance = this;
6
+ }
7
+ getConfig() {
8
+ return this.config;
9
+ }
10
+ }
@@ -1,16 +1,16 @@
1
1
  import { Configuration } from 'webpack';
2
2
  export default class ViewControllerExporter {
3
+ static Class?: typeof ViewControllerExporter;
3
4
  private cwd;
4
5
  private compiler?;
5
6
  private isWatching;
6
7
  private willIncrementallyBuildHandler?;
7
8
  private didIncrementallyBuildHandler?;
8
- private constructor();
9
- private config;
9
+ protected config: Configuration;
10
+ protected constructor(cwd: string);
10
11
  static Exporter(cwd: string): ViewControllerExporter;
11
12
  export(options: ExportOptions): Promise<void>;
12
13
  getCwd(): string;
13
- getConfig(): Configuration;
14
14
  private splitToFileAndDir;
15
15
  kill(): Promise<void>;
16
16
  private run;
@@ -30,5 +30,6 @@ export interface ExportOptions {
30
30
  onDidIncrementallyBuild?: DidIncrementallyBuildHandler;
31
31
  onWillIncrementallyBuild?: DidIncrementallyBuildHandler;
32
32
  shouldWatch?: boolean;
33
+ shouldBuildSourceMaps?: boolean;
33
34
  }
34
35
  export {};
@@ -20,13 +20,14 @@ export default class ViewControllerExporter {
20
20
  this.cwd = cwd;
21
21
  }
22
22
  static Exporter(cwd) {
23
+ var _a;
23
24
  assertOptions({ cwd }, ['cwd']);
24
- return new this(cwd);
25
+ return new ((_a = this.Class) !== null && _a !== void 0 ? _a : this)(cwd);
25
26
  }
26
27
  export(options) {
27
28
  return __awaiter(this, void 0, void 0, function* () {
28
29
  this.assertValidExportOptions(options);
29
- const { source, destination, profilerStatsDestination, defines, shouldWatch, onDidIncrementallyBuild, onWillIncrementallyBuild, } = options;
30
+ const { source, destination, profilerStatsDestination, defines, shouldWatch, onDidIncrementallyBuild, onWillIncrementallyBuild, shouldBuildSourceMaps, } = options;
30
31
  this.assertValidSource(source);
31
32
  const { filename, dirname } = this.splitToFileAndDir(destination);
32
33
  this.assertValidDestinationFilename(filename);
@@ -35,6 +36,7 @@ export default class ViewControllerExporter {
35
36
  destinationDirname: dirname,
36
37
  destinationFilename: filename,
37
38
  shouldProfile: !!profilerStatsDestination,
39
+ shouldBuildSourceMaps,
38
40
  defines,
39
41
  });
40
42
  this.compiler = this.Compiler();
@@ -50,9 +52,6 @@ export default class ViewControllerExporter {
50
52
  getCwd() {
51
53
  return this.cwd;
52
54
  }
53
- getConfig() {
54
- return this.config;
55
- }
56
55
  splitToFileAndDir(destination) {
57
56
  const dirname = pathUtil.dirname(destination);
58
57
  const filename = pathUtil.basename(destination);
@@ -130,11 +129,13 @@ export default class ViewControllerExporter {
130
129
  return webpack(this.config);
131
130
  }
132
131
  buildConfiguration(options) {
133
- const { entry, destinationDirname, destinationFilename, shouldProfile, defines, } = options;
132
+ const { entry, destinationDirname, destinationFilename, shouldProfile, defines, shouldBuildSourceMaps, } = options;
134
133
  return {
135
134
  entry,
135
+ mode: shouldBuildSourceMaps ? 'development' : 'production',
136
136
  context: this.cwd,
137
137
  stats: !!shouldProfile,
138
+ devtool: shouldBuildSourceMaps ? 'inline-source-map' : false,
138
139
  resolve: {
139
140
  extensions: ['.ts', '.js'],
140
141
  fallback: {
@@ -184,7 +185,9 @@ export default class ViewControllerExporter {
184
185
  loader: `babel-loader`,
185
186
  options: {
186
187
  configFile: false,
187
- sourceMaps: false,
188
+ sourceMaps: shouldBuildSourceMaps
189
+ ? 'inline'
190
+ : false,
188
191
  presets: [
189
192
  [
190
193
  '@babel/preset-env',
@@ -214,7 +217,7 @@ export default class ViewControllerExporter {
214
217
  ],
215
218
  },
216
219
  optimization: {
217
- minimize: true,
220
+ minimize: !shouldBuildSourceMaps,
218
221
  minimizer: [new TerserPlugin()],
219
222
  },
220
223
  plugins: [
package/build/index.d.ts CHANGED
@@ -58,6 +58,7 @@ export { default as buildActiveRecordList } from './builders/buildActiveRecordLi
58
58
  export { default as activeRecordCardAssert } from './tests/utilities/activeRecordCardAssert';
59
59
  export { default as MockActiveRecordCard } from './tests/MockActiveRecordCard';
60
60
  export { default as lockScreenAssert } from './tests/utilities/lockScreenAssert';
61
+ export { default as SpyViewControllerExporter } from './tests/SpyViewControllerExporter';
61
62
  export { default as PolarAreaViewController } from './viewControllers/PolarAreaViewController.vc';
62
63
  export { default as AuthenticatorImpl } from './auth/Authenticator';
63
64
  export * from './auth/Authenticator';
package/build/index.js CHANGED
@@ -17,10 +17,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
17
17
  return (mod && mod.__esModule) ? mod : { "default": mod };
18
18
  };
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.lineIconSchema = exports.fancyIconSchema = exports.selectInputSchema = exports.skillViewSchema = exports.bigFormSchema = exports.calendarEventColorsSchema = exports.buildSkillView = exports.buildForm = exports.buildBigForm = exports.AuthenticatorImpl = exports.PolarAreaViewController = exports.lockScreenAssert = exports.MockActiveRecordCard = exports.activeRecordCardAssert = exports.buildActiveRecordList = exports.buildActiveRecordCard = exports.AbstractInputViewController = exports.AutocompleteInputViewController = exports.AbstractCalendarEventViewController = exports.RatingsViewController = exports.ProgressViewController = exports.StatsViewController = exports.FeedViewController = exports.ActiveRecordListViewController = exports.ActiveRecordCardViewController = exports.TalkingSprucebotViewController = exports.ButtonBarViewController = exports.CalendarViewController = exports.SwipeCardViewControllerImpl = exports.SwipeViewControllerImpl = exports.PagerViewController = exports.ProgressNavigatorViewController = exports.CountdownTimerViewController = exports.FormBuilderCardViewControllerImpl = exports.LoginViewController = exports.BarChartViewController = exports.ToolBeltViewController = exports.FormViewControllerImpl = exports.ListCellViewController = exports.ListRowViewController = exports.ListViewController = exports.NavigationViewController = exports.LockScreenSkillViewController = exports.DialogViewController = exports.ConfirmViewController = exports.CardViewControllerImpl = exports.ButtonGroupViewController = exports.AbstractAppController = exports.AbstractViewController = exports.AbstractSkillViewController = void 0;
21
- exports.progressSchema = exports.statsStatSchema = exports.statsSchema = exports.toggleInputSchema = exports.listToggleInputSchema = exports.addressInputSchema = exports.buttonBarButtonSchema = exports.buttonBarSchema = exports.toolBeltToolSchema = exports.toolBeltSchema = exports.calendarTimeSchema = exports.calendarPersonSchema = exports.calendarSchema = exports.themePropsSchema = exports.themeSchema = exports.cardFooterButtonSchema = exports.criticalErrorSchema = exports.sprucebotTypedMessageSentenceSchema = exports.sprucebotTypedMessageAvatarSchema = exports.selectInputChoiceSchema = exports.calendarEventColorOverrideSchema = exports.portalSchema = exports.listTextInputSchema = exports.listSelectInputSchema = exports.listCellButtonSchema = exports.dropdownButtonSchema = exports.bigFormSectionSchema = exports.textInputSchema = exports.phoneInputSchema = exports.inputSchema = exports.dropdownSchema = exports.sprucebotTypedMessageSchema = exports.talkingSprucebotSchema = exports.sprucebotAvatarSchema = exports.formBuilderImportExportObjectSchema = exports.listCellSchema = exports.listRowSchema = exports.listSchema = exports.layoutSchema = exports.cardSectionSchema = exports.cardHeaderSchema = exports.cardFooterSchema = exports.cardBodySchema = exports.cardSchema = exports.formSectionSchema = exports.formSchema = exports.textSchema = exports.lockScreenSchema = exports.dialogSchema = exports.buttonSchema = void 0;
22
- exports.countdownTimerAssert = exports.calendarInteractor = exports.interactor = exports.normalizeScopeFromVc = exports.autocompleteInteractor = exports.formAssert = exports.autocompleteAssert = exports.listAssert = exports.buttonAssert = exports.deviceAssert = exports.navigationAssert = exports.toolBeltAssert = exports.toastAssert = exports.vcPluginAssert = exports.vcDurationAssert = exports.pagerAssert = exports.vcAssert = exports.vcAssertUtil = exports.feedAssert = exports.feedInteractor = exports.normalizeFormSectionFieldNamesUtil = exports.ViewControllerError = exports.SpyDevice = exports.StubStorage = exports.ViewControllerFactory = exports.ViewControllerImporter = exports.ViewControllerExporter = exports.pagerSchema = exports.polarAreaDataItemSchema = exports.polarAreaSchema = exports.inputButtonSchema = exports.mapPinSchema = exports.mapSchema = exports.latLngSchema = exports.formBuilderImportExportPageSchema = exports.autocompleteSuggestionSchema = exports.autocompleteInputSchema = exports.feedSchema = exports.calendarShiftSchema = exports.receiptTotalSchema = exports.receiptSectionSchema = exports.receiptLineItemSchema = exports.receiptHeaderSchema = exports.receiptSchema = exports.listDateInputSchema = exports.calendarSelectedDateSchema = exports.calendarEventSchema = exports.ratingsInputSchema = exports.listRatingsInputSchema = exports.ratingsSchema = void 0;
23
- exports.navigationRouteSchema = exports.routerDestinationSchema = exports.navigationDropdownButtonSchema = exports.navigationButtonDropdownSchema = exports.barChartDataSetSchema = exports.barChartDataPointSchema = exports.barChartSchema = exports.progressDetailsSchema = exports.progressNavigatorStepSchema = exports.progressNavigatorSchema = exports.countdownTimerSchema = exports.permissionContractReferenceSchema = exports.navigationButtonSchema = exports.navigationSchema = exports.ToolBeltStateMachine = exports.removeUniversalViewOptions = exports.buildSkillViewLayout = exports.splitCardsIntoLayouts = exports.listUtil = exports.mapInteractor = exports.mapAssert = exports.renderUtil = exports.routerTestPatcher = exports.dialogTestPatcher = exports.confirmTestPatcher = exports.calendarSeeder = exports.interactionUtil = exports.barChartAssert = exports.progressNavigatorAssert = exports.countdownTimerInteractor = void 0;
20
+ exports.fancyIconSchema = exports.selectInputSchema = exports.skillViewSchema = exports.bigFormSchema = exports.calendarEventColorsSchema = exports.buildSkillView = exports.buildForm = exports.buildBigForm = exports.AuthenticatorImpl = exports.PolarAreaViewController = exports.SpyViewControllerExporter = exports.lockScreenAssert = exports.MockActiveRecordCard = exports.activeRecordCardAssert = exports.buildActiveRecordList = exports.buildActiveRecordCard = exports.AbstractInputViewController = exports.AutocompleteInputViewController = exports.AbstractCalendarEventViewController = exports.RatingsViewController = exports.ProgressViewController = exports.StatsViewController = exports.FeedViewController = exports.ActiveRecordListViewController = exports.ActiveRecordCardViewController = exports.TalkingSprucebotViewController = exports.ButtonBarViewController = exports.CalendarViewController = exports.SwipeCardViewControllerImpl = exports.SwipeViewControllerImpl = exports.PagerViewController = exports.ProgressNavigatorViewController = exports.CountdownTimerViewController = exports.FormBuilderCardViewControllerImpl = exports.LoginViewController = exports.BarChartViewController = exports.ToolBeltViewController = exports.FormViewControllerImpl = exports.ListCellViewController = exports.ListRowViewController = exports.ListViewController = exports.NavigationViewController = exports.LockScreenSkillViewController = exports.DialogViewController = exports.ConfirmViewController = exports.CardViewControllerImpl = exports.ButtonGroupViewController = exports.AbstractAppController = exports.AbstractViewController = exports.AbstractSkillViewController = void 0;
21
+ exports.statsStatSchema = exports.statsSchema = exports.toggleInputSchema = exports.listToggleInputSchema = exports.addressInputSchema = exports.buttonBarButtonSchema = exports.buttonBarSchema = exports.toolBeltToolSchema = exports.toolBeltSchema = exports.calendarTimeSchema = exports.calendarPersonSchema = exports.calendarSchema = exports.themePropsSchema = exports.themeSchema = exports.cardFooterButtonSchema = exports.criticalErrorSchema = exports.sprucebotTypedMessageSentenceSchema = exports.sprucebotTypedMessageAvatarSchema = exports.selectInputChoiceSchema = exports.calendarEventColorOverrideSchema = exports.portalSchema = exports.listTextInputSchema = exports.listSelectInputSchema = exports.listCellButtonSchema = exports.dropdownButtonSchema = exports.bigFormSectionSchema = exports.textInputSchema = exports.phoneInputSchema = exports.inputSchema = exports.dropdownSchema = exports.sprucebotTypedMessageSchema = exports.talkingSprucebotSchema = exports.sprucebotAvatarSchema = exports.formBuilderImportExportObjectSchema = exports.listCellSchema = exports.listRowSchema = exports.listSchema = exports.layoutSchema = exports.cardSectionSchema = exports.cardHeaderSchema = exports.cardFooterSchema = exports.cardBodySchema = exports.cardSchema = exports.formSectionSchema = exports.formSchema = exports.textSchema = exports.lockScreenSchema = exports.dialogSchema = exports.buttonSchema = exports.lineIconSchema = void 0;
22
+ exports.calendarInteractor = exports.interactor = exports.normalizeScopeFromVc = exports.autocompleteInteractor = exports.formAssert = exports.autocompleteAssert = exports.listAssert = exports.buttonAssert = exports.deviceAssert = exports.navigationAssert = exports.toolBeltAssert = exports.toastAssert = exports.vcPluginAssert = exports.vcDurationAssert = exports.pagerAssert = exports.vcAssert = exports.vcAssertUtil = exports.feedAssert = exports.feedInteractor = exports.normalizeFormSectionFieldNamesUtil = exports.ViewControllerError = exports.SpyDevice = exports.StubStorage = exports.ViewControllerFactory = exports.ViewControllerImporter = exports.ViewControllerExporter = exports.pagerSchema = exports.polarAreaDataItemSchema = exports.polarAreaSchema = exports.inputButtonSchema = exports.mapPinSchema = exports.mapSchema = exports.latLngSchema = exports.formBuilderImportExportPageSchema = exports.autocompleteSuggestionSchema = exports.autocompleteInputSchema = exports.feedSchema = exports.calendarShiftSchema = exports.receiptTotalSchema = exports.receiptSectionSchema = exports.receiptLineItemSchema = exports.receiptHeaderSchema = exports.receiptSchema = exports.listDateInputSchema = exports.calendarSelectedDateSchema = exports.calendarEventSchema = exports.ratingsInputSchema = exports.listRatingsInputSchema = exports.ratingsSchema = exports.progressSchema = void 0;
23
+ exports.navigationRouteSchema = exports.routerDestinationSchema = exports.navigationDropdownButtonSchema = exports.navigationButtonDropdownSchema = exports.barChartDataSetSchema = exports.barChartDataPointSchema = exports.barChartSchema = exports.progressDetailsSchema = exports.progressNavigatorStepSchema = exports.progressNavigatorSchema = exports.countdownTimerSchema = exports.permissionContractReferenceSchema = exports.navigationButtonSchema = exports.navigationSchema = exports.ToolBeltStateMachine = exports.removeUniversalViewOptions = exports.buildSkillViewLayout = exports.splitCardsIntoLayouts = exports.listUtil = exports.mapInteractor = exports.mapAssert = exports.renderUtil = exports.routerTestPatcher = exports.dialogTestPatcher = exports.confirmTestPatcher = exports.calendarSeeder = exports.interactionUtil = exports.barChartAssert = exports.progressNavigatorAssert = exports.countdownTimerInteractor = exports.countdownTimerAssert = void 0;
24
24
  __exportStar(require("./constants"), exports);
25
25
  __exportStar(require("./types/heartwood.types"), exports);
26
26
  __exportStar(require("./utilities/removeUniversalViewOptions"), exports);
@@ -119,6 +119,8 @@ var MockActiveRecordCard_1 = require("./tests/MockActiveRecordCard");
119
119
  Object.defineProperty(exports, "MockActiveRecordCard", { enumerable: true, get: function () { return __importDefault(MockActiveRecordCard_1).default; } });
120
120
  var lockScreenAssert_1 = require("./tests/utilities/lockScreenAssert");
121
121
  Object.defineProperty(exports, "lockScreenAssert", { enumerable: true, get: function () { return __importDefault(lockScreenAssert_1).default; } });
122
+ var SpyViewControllerExporter_1 = require("./tests/SpyViewControllerExporter");
123
+ Object.defineProperty(exports, "SpyViewControllerExporter", { enumerable: true, get: function () { return __importDefault(SpyViewControllerExporter_1).default; } });
122
124
  var PolarAreaViewController_vc_1 = require("./viewControllers/PolarAreaViewController.vc");
123
125
  Object.defineProperty(exports, "PolarAreaViewController", { enumerable: true, get: function () { return __importDefault(PolarAreaViewController_vc_1).default; } });
124
126
  var Authenticator_1 = require("./auth/Authenticator");
@@ -0,0 +1,7 @@
1
+ import { Configuration } from 'webpack';
2
+ import ViewControllerExporter from '../viewControllers/ViewControllerExporter';
3
+ export default class SpyViewControllerExporter extends ViewControllerExporter {
4
+ static instance?: SpyViewControllerExporter;
5
+ constructor(cwd: string);
6
+ getConfig(): Configuration;
7
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const ViewControllerExporter_1 = __importDefault(require("../viewControllers/ViewControllerExporter"));
7
+ class SpyViewControllerExporter extends ViewControllerExporter_1.default {
8
+ constructor(cwd) {
9
+ super(cwd);
10
+ SpyViewControllerExporter.instance = this;
11
+ }
12
+ getConfig() {
13
+ return this.config;
14
+ }
15
+ }
16
+ exports.default = SpyViewControllerExporter;
@@ -1,16 +1,16 @@
1
1
  import { Configuration } from 'webpack';
2
2
  export default class ViewControllerExporter {
3
+ static Class?: typeof ViewControllerExporter;
3
4
  private cwd;
4
5
  private compiler?;
5
6
  private isWatching;
6
7
  private willIncrementallyBuildHandler?;
7
8
  private didIncrementallyBuildHandler?;
8
- private constructor();
9
- private config;
9
+ protected config: Configuration;
10
+ protected constructor(cwd: string);
10
11
  static Exporter(cwd: string): ViewControllerExporter;
11
12
  export(options: ExportOptions): Promise<void>;
12
13
  getCwd(): string;
13
- getConfig(): Configuration;
14
14
  private splitToFileAndDir;
15
15
  kill(): Promise<void>;
16
16
  private run;
@@ -30,5 +30,6 @@ export interface ExportOptions {
30
30
  onDidIncrementallyBuild?: DidIncrementallyBuildHandler;
31
31
  onWillIncrementallyBuild?: DidIncrementallyBuildHandler;
32
32
  shouldWatch?: boolean;
33
+ shouldBuildSourceMaps?: boolean;
33
34
  }
34
35
  export {};
@@ -17,11 +17,11 @@ class ViewControllerExporter {
17
17
  }
18
18
  static Exporter(cwd) {
19
19
  (0, schema_1.assertOptions)({ cwd }, ['cwd']);
20
- return new this(cwd);
20
+ return new (this.Class ?? this)(cwd);
21
21
  }
22
22
  async export(options) {
23
23
  this.assertValidExportOptions(options);
24
- const { source, destination, profilerStatsDestination, defines, shouldWatch, onDidIncrementallyBuild, onWillIncrementallyBuild, } = options;
24
+ const { source, destination, profilerStatsDestination, defines, shouldWatch, onDidIncrementallyBuild, onWillIncrementallyBuild, shouldBuildSourceMaps, } = options;
25
25
  this.assertValidSource(source);
26
26
  const { filename, dirname } = this.splitToFileAndDir(destination);
27
27
  this.assertValidDestinationFilename(filename);
@@ -30,6 +30,7 @@ class ViewControllerExporter {
30
30
  destinationDirname: dirname,
31
31
  destinationFilename: filename,
32
32
  shouldProfile: !!profilerStatsDestination,
33
+ shouldBuildSourceMaps,
33
34
  defines,
34
35
  });
35
36
  this.compiler = this.Compiler();
@@ -44,9 +45,6 @@ class ViewControllerExporter {
44
45
  getCwd() {
45
46
  return this.cwd;
46
47
  }
47
- getConfig() {
48
- return this.config;
49
- }
50
48
  splitToFileAndDir(destination) {
51
49
  const dirname = path_1.default.dirname(destination);
52
50
  const filename = path_1.default.basename(destination);
@@ -117,11 +115,13 @@ class ViewControllerExporter {
117
115
  return (0, webpack_1.webpack)(this.config);
118
116
  }
119
117
  buildConfiguration(options) {
120
- const { entry, destinationDirname, destinationFilename, shouldProfile, defines, } = options;
118
+ const { entry, destinationDirname, destinationFilename, shouldProfile, defines, shouldBuildSourceMaps, } = options;
121
119
  return {
122
120
  entry,
121
+ mode: shouldBuildSourceMaps ? 'development' : 'production',
123
122
  context: this.cwd,
124
123
  stats: !!shouldProfile,
124
+ devtool: shouldBuildSourceMaps ? 'inline-source-map' : false,
125
125
  resolve: {
126
126
  extensions: ['.ts', '.js'],
127
127
  fallback: {
@@ -171,7 +171,9 @@ class ViewControllerExporter {
171
171
  loader: `babel-loader`,
172
172
  options: {
173
173
  configFile: false,
174
- sourceMaps: false,
174
+ sourceMaps: shouldBuildSourceMaps
175
+ ? 'inline'
176
+ : false,
175
177
  presets: [
176
178
  [
177
179
  '@babel/preset-env',
@@ -201,7 +203,7 @@ class ViewControllerExporter {
201
203
  ],
202
204
  },
203
205
  optimization: {
204
- minimize: true,
206
+ minimize: !shouldBuildSourceMaps,
205
207
  minimizer: [new terser_webpack_plugin_1.default()],
206
208
  },
207
209
  plugins: [
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "sideEffects": false,
14
14
  "license": "MIT",
15
15
  "description": "All the power of Heartwood in one, convenient package.",
16
- "version": "117.0.6",
16
+ "version": "117.1.1",
17
17
  "skill": {
18
18
  "namespace": "HeartwoodViewControllers",
19
19
  "commandOverrides": {