prepack-webpack-plugin
prepack-webpack-plugin copied to clipboard
A webpack plugin for prepack.
## Expected Behavior Attempting to get this to prepack react elements: https://github.com/facebook/prepack/wiki/react-compiler ## Actual Behavior Components don't seem to be picked up, neither do `__evaluatePureFunction` tagged functions. I do see...
## Detailed Description Since code split creates multiple independent chunks, prepack can only apply optimizations to chunk "shells", not modules contained in these chunks (maybe except for entry chunk). I...
## Actual Behavior unhandledRejection TypeError: Cannot read property 'compilation' of undefined ## Specifications - Node.js version: 9.10.1 - Plugin version: 1.1.1 - Webpack version: 4.17.1
Hi, I'm trying to include this plugin in my webpack configuration but it is throwing this error: `Warn: PP0023: Program may terminate with exception: require is not defined ReferenceError at...
Tried to run my Webpack production config and getting the following error since I added ``prepack-webpack-plugin``: ``` Error: PP0017: Unfrozen object leaked before end of global code at 2:1 to...
Prepack fails when trying to parse worker-loader generated bundle ``` 65% building modules 1234/1335 modules 101 active ...s/babel-runtime/core-js/array/from.jsnot an object TypeError at ../node_modules/babel-loader/lib/index.js!./path/to/worker/file.js(8569baa88463d70f55c2.worker.js:184:34) at call (native) at __webpack_require__ (8569baa88463d70f55c2.worker.js:20:12) at...
After added to webpack and run, I have error: ``` .... 91% additional asset processingnot an object TypeError ~/project/node_modules/prepack/lib/prepack-standalone.js:59 throw new InitializationError(); ^ Error: An error occurred while prepacking. See...
Not sure what causes this error, I'm not able to build using this plugin: ``` Invariant Violation at invariant (/my_project/node_modules/prepack/src/invariant.js:15:15) at new Serializer (/my_project/node_modules/prepack/src/serializer/serializer.js:64:5) at prepack (/my_project/node_modules/prepack/src/prepack-standalone.js:36:20) at Compilation.compilation.plugin (/my_project/node_modules/prepack-webpack-plugin/src/PrepackPlugin.js:58:35)...
The `prepack` method does not allow to utilise source maps. Use `prepackFromAst` to sourcemap generation.
Hello everyone, I tried to test but unfortunately it did not work ... below are the settings made and the error log occurred. webpack.prod.config.js: ```javascript ... const PrepackWebpackPlugin = require('prepack-webpack-plugin').default;...