Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-27478

Webpack: Use thread-loader in production builds

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: None
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Tooling
    • Labels:
      None

      Description

      To speed up production builds we should include thread-loader before other expensive loaders, like babel-loader.

      The thread-loader is currently having some issues with platform specific files which needs to be investigated. We override Webpack's default compiler input filesystem with PlatformAwareFilesystem to easily switch out files based on the current platform. For example, a require to @/components/Platform.vue uses @/components/Platform.ios.vue if available.

      This works fine in other loaders because they use the internal compiler filesystem. However, therad-loader has no access to that in workers, so it resorts to Node's fs module.

        Attachments

          Activity

            People

            • Assignee:
              jvennemann Jan Vennemann
              Reporter:
              jvennemann Jan Vennemann
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration