From f62bdd36c00a1cd8a43a033751f55a645b64654f Mon Sep 17 00:00:00 2001 From: Mathieu Davy <“mathieu.davy@nearform.com”> Date: Thu, 5 Oct 2023 11:49:19 +0100 Subject: [PATCH] fix: fix for tests There seems to be a process to publish the module that renames the bundle-esm.js file to bundle.js. I don't know why we need to name the webpack generated file with the -esm suffix. --- src/danfojs-browser/package.json | 2 +- src/danfojs-browser/webpack.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/danfojs-browser/package.json b/src/danfojs-browser/package.json index 8f34b05c..8bfb26f1 100644 --- a/src/danfojs-browser/package.json +++ b/src/danfojs-browser/package.json @@ -4,7 +4,7 @@ "description": "JavaScript library providing high performance, intuitive, and easy to use data structures for manipulating and processing structured data.", "main": "dist/danfojs-browser/src/index.js", "types": "dist/danfojs-browser/src/index.d.ts", - "module": "lib/bundle-esm.js", + "module": "lib/bundle.js", "directories": { "test": "tests" }, diff --git a/src/danfojs-browser/webpack.config.js b/src/danfojs-browser/webpack.config.js index 10f8b9d6..d1a1b413 100644 --- a/src/danfojs-browser/webpack.config.js +++ b/src/danfojs-browser/webpack.config.js @@ -12,7 +12,7 @@ const createConfig = () => { target: "web", output: { path: path.resolve(__dirname, "lib"), - filename: "bundle-esm.js", + filename: "bundle.js", library: "dfd" }, module: {