Skip to content

Commit

Permalink
Revert "fix(rewrite-imports): turn into es module"
Browse files Browse the repository at this point in the history
This reverts commit 459ea50, and part
of the parent commit.
  • Loading branch information
floryst committed Apr 12, 2022
1 parent c737a5b commit c84e6f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Utilities/build/rewrite-imports.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default (code, replaceFunc) => {
module.exports = (code, replaceFunc) => {
const importRegex = /(?:import|from) ['"]([^'"]*)['"]/g;
let m;
while ((m = importRegex.exec(code)) !== null) {
Expand Down
3 changes: 2 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ import pkgJSON from './package.json';

import { rewriteFilenames } from './Utilities/rollup/plugin-rewrite-filenames';
import { generateDtsReferences } from './Utilities/rollup/plugin-generate-references';
import relatifyImports from './Utilities/build/rewrite-imports';

const relatifyImports = require('./Utilities/build/rewrite-imports');

const IGNORE_LIST = [
/[/\\]example_?[/\\]/,
Expand Down

0 comments on commit c84e6f9

Please sign in to comment.