diff options
author | Sarah German <sgerman@gitlab.com> | 2022-05-13 21:32:13 +0300 |
---|---|---|
committer | Sarah German <sgerman@gitlab.com> | 2022-05-13 21:33:54 +0300 |
commit | db63c4e528deb605d981796ab44a128495f31805 (patch) | |
tree | 4801ce2c6787aefbc39ccf4c3ffac3c161914835 | |
parent | 9ab7e82e0c41f701a88a5946c65eb4417e61db4b (diff) |
Set requireReturnsDefault property in commonjs configupdate-rollup-commonjs
-rw-r--r-- | rollup.config.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rollup.config.js b/rollup.config.js index 29efc1b0..43c0942e 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -22,7 +22,9 @@ module.exports = glob.sync('content/frontend/**/*.js').map((file) => ({ }, plugins: [ nodeResolve({ browser: true, preferBuiltins: false }), - commonjs(), + commonjs({ + requireReturnsDefault: 'preferred', + }), vue(), svg(), inject({ |