Skip to content

Continue to build commonjs until immutable v6 #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/devtools/demo/demo.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as Immutable from 'immutable';
import installDevTools from '../dist/index.js';
import installDevTools from '../dist/index.mjs';

var MyRecord = Immutable.Record(
{
Expand Down
7 changes: 5 additions & 2 deletions packages/devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,19 @@
"description": "Chrome Dev Tools formatter for the Immutable JS library",
"exports": {
".": {
"import": "./dist/index.js",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
}
},
"main": "dist/index.cjs",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build:types": "tsc",
"build:module": "rollup -c",
"build:module": "rm -rf dist; rollup -c",
"build": "yarn run build:types && yarn run build:module",
"lint:types": "tsc --noEmit",
"lint": "yarn run lint:types",
Expand Down
14 changes: 10 additions & 4 deletions packages/devtools/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,16 @@ function injectDemoSource() {
const config = [
{
input: 'src/index.ts',
output: {
dir: 'dist',
format: 'es',
},
output: [
{
file: 'dist/index.mjs',
format: 'es',
},
{
file: 'dist/index.cjs',
format: 'cjs',
},
],
plugins: [
babel({
babelHelpers: 'bundled',
Expand Down
2 changes: 1 addition & 1 deletion packages/devtools/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import Immutable4 from 'immutable';
import Immutable3 from 'immutable3';

import installDevTools from './dist/index.js';
import installDevTools from './dist/index.mjs';
installDevTools(Immutable4);

console.log('Testing with Immutable 4');
Expand Down