Skip to content

Example of nomodule/module webpack config with plugin-transform-runtime and corejs@3 #12598

Answered by JackHowa
JackHowa asked this question in Q&A
Discussion options

You must be logged in to vote

Big thank you to @nicolo-ribaudo for debugging with me and for the patience. Also thanks to @developit for inspiring exploration and soon-to-be work work using nomodule/module approach.

Overall, IE 11 with corejs and nomodule support mvp: https://github.com/JackHowa/esmodule-no-module-doing-something/releases/tag/v1.0.0

// legacy-webpack.config.js 
const path = require('path');

module.exports = {
  mode: 'production',
  // prevents arrow funcs via 
  // https://webpack.js.org/migrate/5/#need-to-support-an-older-browser-like-ie-11
  target: ['web', 'es5'],
  entry: './app.js',
  output: {
    filename: 'app.legacy.js',
    path: path.resolve(__dirname, 'dist'),
  },
  module: {
    rules: [

Replies: 2 comments 18 replies

Comment options

You must be logged in to vote
18 replies
@JackHowa
Comment options

@JackHowa
Comment options

@nicolo-ribaudo
Comment options

@JackHowa
Comment options

@JackHowa
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by JackHowa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants