hard-source-webpack-plugin icon indicating copy to clipboard operation
hard-source-webpack-plugin copied to clipboard

On cached builds, require.context modules are missing

Open Akryum opened this issue 7 years ago • 0 comments

Using require.context to automatically register Vue components.

Expected Behavior

Build output should be identical between builds.

Actual Behavior

All the dynamically registered modules are missing from the output after the 1rst build (so when it's being built using the cache).

Is an error being thrown?

No

Steps to Reproduce

TODO create a repository with minimal reproduction

Operating System, Node, and NPM dependency versions

Mac OS 10.13.5
Node 10.10.0

"dependencies": {
    "@brightcove/videojs-flashls-source-handler": "^1.4.2",
    "accounting": "^0.4.1",
    "actioncable": "^5.1.4",
    "axios": "^0.17.1",
    "blueimp-md5": "^2.10.0",
    "bootstrap": "4.0.0-alpha.5",
    "bootstrap-multiselect": "^0.9.13-1",
    "bowser": "^1.8.1",
    "can-autoplay": "^3.0.0",
    "chart.js": "^2.7.1",
    "clipboard": "^1.7.1",
    "codemirror": "^5.34.0",
    "countdown": "^2.6.0",
    "d3": "^4.12.0",
    "d3-funnel": "^1.1.1",
    "emoji-js": "^3.4.0",
    "faker": "^4.1.0",
    "htmlhint": "^0.9.13",
    "i18next": "^10.2.1",
    "ifvisible.js": "^2.0.11",
    "intersection-observer": "^0.5.0",
    "jquery": "^3.2.1",
    "jquery-ui": "^1.12.1",
    "js-beautify": "^1.7.5",
    "js-cookie": "^2.2.0",
    "js-yaml": "^3.10.0",
    "linkifyjs": "^2.1.5",
    "lodash": "^4.17.4",
    "moment": "^2.20.1",
    "moment-timezone": "^0.5.14",
    "normalize.css": "^5.0.0",
    "owl.carousel": "^2.2.0",
    "parsleyjs": "^2.8.0",
    "platform": "^1.3.4",
    "quill": "^1.3.4",
    "quill-blot-formatter": "^1.0.2",
    "raven-js": "^3.24.1",
    "screenfull": "^3.3.2",
    "simditor": "^2.3.6",
    "slugify": "^1.2.9",
    "smartlook-client": "^3.1.0",
    "store": "^2.0.12",
    "swig": "^1.4.2",
    "tether": "^1.4.3",
    "tributejs": "^3.1.3",
    "v-tooltip": "^2.0.0-rc.30",
    "video.js": "^7.0.3",
    "videojs-contrib-hls": "^5.14.1",
    "videojs-flash": "^2.1.0",
    "videojs-playlist": "^4.2.0",
    "vue": "^2.5.17",
    "vue-codemirror": "^4.0.2",
    "vue-hot-reload-api": "^2.2.4",
    "vue-resize": "^0.4.3",
    "vue-router": "^3.0.1",
    "vue-router-multi-view": "^0.0.4",
    "vue-sticky": "^3.3.1",
    "vue-virtual-scroller": "^0.12.0",
    "vuelidate": "^0.7.4",
    "vuex": "^3.0.1",
    "vuex-router-sync": "^5.0.0",
    "world-countries": "^1.8.1"
  },
  "devDependencies": {
    "@vue/cli-plugin-babel": "^3.0.1",
    "@vue/cli-plugin-eslint": "^3.0.1",
    "@vue/cli-plugin-unit-jest": "^3.0.1",
    "@vue/cli-service": "^3.0.1",
    "@vue/eslint-config-standard": "^3.0.1",
    "@vue/test-utils": "1.0.0-beta.13",
    "babel-core": "7.0.0-bridge.0",
    "babel-jest": "^23.0.1",
    "codecov": "^3.0.0",
    "cross-env": "^5.2.0",
    "glob": "^7.1.3",
    "grunt": "^1.0.1",
    "grunt-svgstore": "^1.0.0",
    "gulp": "^3.9.1",
    "hard-source-webpack-plugin": "^0.12.0",
    "lint-staged": "^7.2.2",
    "node-cleanup": "^2.1.2",
    "rimraf": "^2.6.2",
    "serve": "^6.0.0",
    "slack-node": "^0.1.8",
    "style-resources-loader": "^1.2.1",
    "stylus": "^0.54.5",
    "stylus-loader": "^3.0.2",
    "vue-template-compiler": "^2.5.17",
    "webpack-assets-manifest": "^3.0.2",
    "webpack-s3-plugin": "^1.0.2"
  },

Akryum avatar Sep 14 '18 17:09 Akryum