Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27429] Webpack: Integration into the CLI build command

GitHub Issuen/a
TypeNew Feature
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2020-08-25T00:36:22.000+0000
Affected Version/sn/a
Fix Version/sRelease 9.1.0
ComponentsCLI
Labelsn/a
ReporterJan Vennemann
AssigneeJan Vennemann
Created2019-09-30T11:27:24.000+0000
Updated2020-08-25T00:36:22.000+0000

Description

To integrate Webpack support in the CLI we need the following changes to our build: - A new hook that communicates with appcd-plugin-webpack to get webpack build results. - Assets generated by Webpack need to be excluded from our existing JavaScript processing from node-titanium-sdk. - Bootstrap files will be loaded dynamically during runtime. These files need to be loaded through a [dynamic expression in import()](https://webpack.js.org/api/module-methods/#dynamic-expressions-in-import). - (Optional) Provide the raw sources of our common JavaScript sources. Currently we bundle all files and the deprecated @babel/polyfill via rollup to create the ti.main.js. This could be optimized through a seperate webpack entry point which would allow to load seperate polyfills based in our internal usage, and end-user code usage.

Comments

  1. Jan Vennemann 2019-11-19

    node-titanium-sdk PR to add a new webpack section to tiapp.xml: https://github.com/appcelerator/node-titanium-sdk/pull/128
  2. Jan Vennemann 2020-06-09

    PR: https://github.com/appcelerator/titanium_mobile/pull/11346
  3. Lokesh Choudhary 2020-08-25

    Closing.

JSON Source