Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARROW-12702: [JS] Update webpack and terser #10275

Closed
wants to merge 5 commits into from

Conversation

domoritz
Copy link
Member

@domoritz domoritz commented May 8, 2021

No description provided.

@github-actions
Copy link

github-actions bot commented May 8, 2021

@domoritz domoritz changed the title ARROW-12702: [JS] Update webpack ARROW-12702: [JS] Update webpack and terser May 8, 2021
output: { comments: false, beautify: false },
compress: { unsafe: true },
mangle: true,
safari10: true // <-- works around safari10 bugs, see the "safari10" option here: https://github.com/terser-js/terser#minify-options
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Safari 10 is sufficiently old enough that we don't need this anymore.

@@ -83,7 +81,7 @@ const minifyTask = ((cache, commonConfig) => memoizeTask(cache, function minifyJ
}))({}, {
resolve: { mainFields: [`module`, `main`] },
module: { rules: [{ test: /\.js$/, enforce: `pre`, use: [`source-map-loader`] }] },
output: { filename: '[name].js', library: mainExport, libraryTarget: `umd`, umdNamedDefine: true },
output: { filename: '[name].js', library: mainExport, libraryTarget: `umd`, umdNamedDefine: true, globalObject: 'this' },
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea why this is needed.

@kou
Copy link
Member

kou commented May 15, 2021

@domoritz Could you rebase on master to merge this?

@domoritz
Copy link
Member Author

I merged master so this should be good to squash and merge.

@kou
Copy link
Member

kou commented May 15, 2021

Thanks. I'll merge this.

@kou kou closed this in 3f292bb May 15, 2021
@domoritz domoritz deleted the webpack branch May 15, 2021 21:49
michalursa pushed a commit to michalursa/arrow that referenced this pull request Jun 13, 2021
Closes apache#10275 from domoritz/webpack

Authored-by: Dominik Moritz <domoritz@gmail.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants