Skip to content

Commit

Permalink
build(umd.js): converted import to ES6 module
Browse files Browse the repository at this point in the history
  • Loading branch information
thkruz committed Jan 14, 2021
1 parent 8c03b7e commit 56972d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions scripts/cleanup.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
var rimraf = require('rimraf');
import { sync } from 'rimraf';

console.log(`Removing ./dist...`);
try {
rimraf.sync('./dist');
sync('./dist');
} catch (error) {
// Intentionally left blank
}

console.log(`Removing ./lib...`);
try {
rimraf.sync('./lib');
sync('./lib');
} catch (error) {
// Intentionally left blank
}
4 changes: 2 additions & 2 deletions scripts/umd.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const TerserPlugin = require('terser-webpack-plugin');
import TerserPlugin from 'terser-webpack-plugin';

let config = {
module: {
Expand Down Expand Up @@ -85,4 +85,4 @@ let minUmd = {

// Return Array of Configurations
// eslint-disable-next-line no-undef
module.exports = [umd, minUmd];
export default [umd, minUmd];

0 comments on commit 56972d3

Please sign in to comment.