summaryrefslogtreecommitdiff
path: root/support/build
diff options
context:
space:
mode:
Diffstat (limited to 'support/build')
-rw-r--r--support/build/aggregate-build.js8
-rw-r--r--support/build/aggregate-bundle.js2
-rw-r--r--support/build/aggregate-cjs.js2
-rw-r--r--support/build/compile-modules.js20
-rw-r--r--support/build/modules-cjs.js2
-rw-r--r--support/build/plugin-lodash-import-rename.js6
6 files changed, 20 insertions, 20 deletions
diff --git a/support/build/aggregate-build.js b/support/build/aggregate-build.js
index 7269291..54ccf96 100644
--- a/support/build/aggregate-build.js
+++ b/support/build/aggregate-build.js
@@ -1,8 +1,8 @@
-import compileModules from './compile-modules';
-import {rollup} from 'rollup';
-import rimraf from 'rimraf/rimraf';
+const compileModules = require('./compile-modules');
+const {rollup} = require('rollup');
+const rimraf = require('rimraf/rimraf');
-export default function buildBundle(options) {
+module.exports = function buildBundle(options) {
function bundle() {
rollup({
entry: options.outpath + '/index.js'
diff --git a/support/build/aggregate-bundle.js b/support/build/aggregate-bundle.js
index 482bfcd..a933033 100644
--- a/support/build/aggregate-bundle.js
+++ b/support/build/aggregate-bundle.js
@@ -1,4 +1,4 @@
-import aggregateBuild from './aggregate-build';
+const aggregateBuild = require('./aggregate-build');
aggregateBuild({
es6: true,
diff --git a/support/build/aggregate-cjs.js b/support/build/aggregate-cjs.js
index 077ca49..4b6896f 100644
--- a/support/build/aggregate-cjs.js
+++ b/support/build/aggregate-cjs.js
@@ -1,4 +1,4 @@
-import aggregateBuild from './aggregate-build';
+const aggregateBuild = require('./aggregate-build');
aggregateBuild({
es6: true,
diff --git a/support/build/compile-modules.js b/support/build/compile-modules.js
index 16aa1ca..00e7381 100644
--- a/support/build/compile-modules.js
+++ b/support/build/compile-modules.js
@@ -1,14 +1,14 @@
-import async from '../../lib';
-import {transformFile} from 'babel-core';
-import _ from 'lodash';
-import readdirR from 'recursive-readdir';
-import pluginCJS from 'babel-plugin-transform-es2015-modules-commonjs';
-import pluginModuleExports from 'babel-plugin-add-module-exports';
-import pluginLodashImportRename from './plugin-lodash-import-rename';
-import {join as joinPath} from 'path';
-import fs from 'fs-extra';
+const async = require('async');
+const {transformFile} = require('babel-core');
+const _ = require('lodash');
+const readdirR = require('recursive-readdir');
+const pluginCJS = require('babel-plugin-transform-es2015-modules-commonjs');
+const pluginModuleExports = require('babel-plugin-add-module-exports');
+const pluginLodashImportRename = require('./plugin-lodash-import-rename');
+const joinPath = require('path').join;
+const fs = require('fs-extra');
-export default function(cb, options) {
+module.exports = function(cb, options) {
options = _.defaults({}, options, {
path:'lib/',
outpath:'build',
diff --git a/support/build/modules-cjs.js b/support/build/modules-cjs.js
index 09632ff..3ae9a8b 100644
--- a/support/build/modules-cjs.js
+++ b/support/build/modules-cjs.js
@@ -1,3 +1,3 @@
-import compileModules from './compile-modules';
+const compileModules = require('./compile-modules');
compileModules(function() {}, {es6: false});
diff --git a/support/build/plugin-lodash-import-rename.js b/support/build/plugin-lodash-import-rename.js
index 6fe893b..b14304f 100644
--- a/support/build/plugin-lodash-import-rename.js
+++ b/support/build/plugin-lodash-import-rename.js
@@ -1,7 +1,7 @@
-import _ from 'lodash';
-import {dirname, sep} from 'path';
+const _ = require('lodash');
+const {dirname, sep} = require('path');
-export default function() {
+module.exports = function() {
return {
visitor: {