Skip to content

Commit

Permalink
Remove obsolete import hack for rrulestr
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrozenberg committed Jul 14, 2023
1 parent 9c61fe5 commit ba5a5db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions extensions/amp-date-picker/0.1/dates-list.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import * as rrule from '../../../node_modules/rrule/dist/es5/rrule';
import {rrulestr} from 'rrule';
import {requireExternal} from '../../../src/module';

const rrulestr = rrule.default.rrulestr || rrule.rrulestr; // closure imports into .default, esbuild flattens a layer.

/** @enum {string} */
const DateType = {
INVALID: 'invalid',
Expand Down
4 changes: 1 addition & 3 deletions extensions/amp-date-picker/1.0/component/dates-list.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import {addDays, isSameDay, isValid} from 'date-fns';
import * as rrule from 'rrule';

const rrulestr = rrule.default.rrulestr || rrule.rrulestr; // closure imports into .default, esbuild flattens a layer.
import {rrulestr} from 'rrule';

/**
* RRULE returns dates as local time formatted at UTC, so the
Expand Down

0 comments on commit ba5a5db

Please sign in to comment.