Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Project Compiles Twice #54

Closed
atdiff opened this issue Jul 8, 2019 · 1 comment
Closed

Project Compiles Twice #54

atdiff opened this issue Jul 8, 2019 · 1 comment

Comments

@atdiff
Copy link

atdiff commented Jul 8, 2019

Description

In projects that have arcgis-webpack-plugin, the code gets compiled twice when ran with webpack-dev-server.

Expected Behavior

The code should only compile once.

Actual Behavior

Code is compiling twice (based on receiving two "Compiled successfully" messages) and longer build/serve process.

Possible Fix

I'm wondering if this is more of a dojo-webpack-plugin side effect. When testing with their demo project, the dual compilation occurs. But with projects without the webpack plugins for arcgis or dojo, it doesn't happen.

Steps to Reproduce

  1. Used the code from https://github.com/Esri/jsapi-resources/tree/master/4.x/webpack/demo
  2. npm install
  3. npm start
  4. Note in the resulting output that there are two "Compiled successfully" messages

Context

It's more of an annoyance than a big problem. Slows down the build. And when using bundle analysis and build notification plugins, it causes duplications of those tasks.

Your Environment

@odoe
Copy link
Collaborator

odoe commented Dec 12, 2019

This is more of a set up option to provide the prebuilt dojo.js file as described in dojo webpack plugin.

@odoe odoe closed this as completed Dec 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants