Closed long76 closed 1 year ago
for webpack users:
.mjs
to the extensions array in your webpack.config.js
. This ensures that the relevant files can be located at build time.{ test: /\.mjs$/, include: /node_modules/, type: 'javascript/auto' }
to your rules array in webpack.config.js. This causes Webpack to recognize .mjs files as modules, and changes the way they are handled for imports.
PR https://github.com/scroll-into-view/compute-scroll-into-view/pull/882