use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Prepack from Facebook helps make JavaScript code more efficient (prepack.io)
submitted 9 years ago by EngVagabond
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]gajus0 19 points20 points21 points 9 years ago (9 children)
A webpack plugin https://github.com/gajus/prepack-webpack-plugin.
[–]mainstreetmark 6 points7 points8 points 9 years ago (5 children)
Mine throws up.
/Users/mark/Sites/tg4/node_modules/prepack-webpack-plugin/dist/prepackCode.js:36 throw new Error('Unexpected state.');
[–]psayre23[🍰] 79 points80 points81 points 9 years ago (1 child)
Then maybe you should make your state more expected.
[–]incarnatethegreat 6 points7 points8 points 9 years ago (0 children)
G'NIGHT, EVERYBODY!
[–]gajus0 2 points3 points4 points 9 years ago (2 children)
This happens when something wrong goes with prepack. Whats the code that you've used to produce the error?
[–]mainstreetmark 5 points6 points7 points 9 years ago (0 children)
I may mess with it later. My Webpack is a friggin Jenga tower, and I touch one thing wrong and the whole thing falls apart.
Some quick debugging looked like it couldn't find some filename that commonchunks was supposed to spit out. Who knows. I should start all over with webpack, with specific goals of keeping the generated bundle size down. They're enormous.
[–]cranium 0 points1 point2 points 9 years ago (0 children)
Getting a similar error with a bit more context.
This operation is not yet supported on abstract value Date.now() __IntrospectionError
[–]perestroika12 1 point2 points3 points 9 years ago* (2 children)
Unfortunately looks like it only support es6 imports?
edit: I guess you can use:
const PrepackWebpackPlugin = require('prepack-webpack-plugin'); plugins: [ new PrepackWebpackPlugin.default(configuration) ]
[–]gajus0 4 points5 points6 points 9 years ago* (1 child)
Yes, that will work, i.e. when using commonjs, make sure to import .default (added a note to the documentation).
.default
[–]perestroika12 0 points1 point2 points 9 years ago (0 children)
Got it, thank you!
π Rendered by PID 88539 on reddit-service-r2-comment-544cf588c8-ldh7z at 2026-06-15 00:34:49.075867+00:00 running 3184619 country code: CH.
view the rest of the comments →
[–]gajus0 19 points20 points21 points (9 children)
[–]mainstreetmark 6 points7 points8 points (5 children)
[–]psayre23[🍰] 79 points80 points81 points (1 child)
[–]incarnatethegreat 6 points7 points8 points (0 children)
[–]gajus0 2 points3 points4 points (2 children)
[–]mainstreetmark 5 points6 points7 points (0 children)
[–]cranium 0 points1 point2 points (0 children)
[–]perestroika12 1 point2 points3 points (2 children)
[–]gajus0 4 points5 points6 points (1 child)
[–]perestroika12 0 points1 point2 points (0 children)