Skip to content

Commit

Permalink
[WIP] Fix up rollup to use esm config
Browse files Browse the repository at this point in the history
  • Loading branch information
decompil3d committed Feb 23, 2024
1 parent 1708774 commit bb0e314
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 10 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"scripts": {
"start": "npm run build:dev -- --watch",
"build": "npm run lint && npm run rollup",
"build:dev": "rollup -c rollup.config.dev.js",
"build:dev": "rollup -c rollup.config.dev.mjs",
"lint": "eslint src/*.ts",
"rollup": "rollup -c",
"test:server": "http-server ./ -c-1 -p 8000 -s",
Expand Down
File renamed without changes.
11 changes: 7 additions & 4 deletions rollup.config.dev.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ import serve from 'rollup-plugin-serve';
import { terser } from 'rollup-plugin-terser';
import json from '@rollup/plugin-json';
import replace from '@rollup/plugin-replace';
import ignore from './rollup-plugins/ignore';
import { ignoreTextfieldFiles } from './elements/ignore/textfield';
import { ignoreSelectFiles } from './elements/ignore/select';
import { ignoreSwitchFiles } from './elements/ignore/switch';
import ignore from './rollup-plugins/ignore.mjs';
import * as ignoreTextfield from './elements/ignore/textfield.mjs';
const { ignoreTextfieldFiles } = ignoreTextfield;
import * as ignoreSelect from './elements/ignore/select.mjs';
const { ignoreSelectFiles } = ignoreSelect;
import * as ignoreSwitch from './elements/ignore/switch.mjs';
const { ignoreSwitchFiles } = ignoreSwitch;
import { defineConfig } from 'rollup';

const __dirname = path.dirname(fileURLToPath(import.meta.url));
Expand Down
13 changes: 8 additions & 5 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@ import { terser } from 'rollup-plugin-terser';
import serve from 'rollup-plugin-serve';
import json from '@rollup/plugin-json';
import replace from '@rollup/plugin-replace';
import visualizer from 'rollup-plugin-visualizer';
import ignore from './rollup-plugins/ignore';
import { ignoreTextfieldFiles } from './elements/ignore/textfield';
import { ignoreSelectFiles } from './elements/ignore/select';
import { ignoreSwitchFiles } from './elements/ignore/switch';
import { visualizer } from 'rollup-plugin-visualizer';
import ignore from './rollup-plugins/ignore.mjs';
import * as ignoreTextfield from './elements/ignore/textfield.mjs';
const { ignoreTextfieldFiles } = ignoreTextfield;
import * as ignoreSelect from './elements/ignore/select.mjs';
const { ignoreSelectFiles } = ignoreSelect;
import * as ignoreSwitch from './elements/ignore/switch.mjs';
const { ignoreSwitchFiles } = ignoreSwitch;

const __dirname = path.dirname(fileURLToPath(import.meta.url));
const require = createRequire(import.meta.url);
Expand Down

0 comments on commit bb0e314

Please sign in to comment.