Created
September 21, 2021 15:50
-
-
Save g3tr1ght/722f757c0052795eb520f5ffb6c716b4 to your computer and use it in GitHub Desktop.
Sample webpack config which produces ES6 modules. See https://webpack.js.org/configuration/output/#outputlibrarytarget for more details
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| entry: './src/module.js', | |
| output: { | |
| filename: 'module.js', | |
| path: path.resolve(__dirname, 'dist'), | |
| libraryTarget: 'module' | |
| }, | |
| experiments: { | |
| outputModule: true, | |
| }, | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment