Skip to content

Commit

Permalink
chore: rewrite webpack config in ledger tests to esm
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Oct 20, 2024
1 parent 23e526d commit 3b6d7ce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions test/environment/ledger/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
import path from 'path';
import webpack from 'webpack';
import HtmlWebpackPlugin from 'html-webpack-plugin';

module.exports = {
export default {
entry: './browser.js',
mode: 'production',
target: 'browserslist:browser',
output: {
path: path.resolve(__dirname, './browser'),
path: path.resolve(import.meta.dirname, './browser'),
},
plugins: [new HtmlWebpackPlugin(), new webpack.ProvidePlugin({ Buffer: ['buffer', 'Buffer'] })],
experiments: {
Expand Down

0 comments on commit 3b6d7ce

Please sign in to comment.