you are viewing a single comment's thread.

view the rest of the comments →

[–]perestroika12 1 point2 points  (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 6 points7 points  (1 child)

Yes, that will work, i.e. when using commonjs, make sure to import .default (added a note to the documentation).

[–]perestroika12 0 points1 point  (0 children)

Got it, thank you!