Skip to content

Commit

Permalink
Rebuild to fix closest on IE10
Browse files Browse the repository at this point in the history
  • Loading branch information
djibe committed Apr 4, 2021
1 parent 4eb143b commit 499ccea
Show file tree
Hide file tree
Showing 14 changed files with 3,681 additions and 3,485 deletions.
1 change: 1 addition & 0 deletions assets/js/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// import $ from 'jquery'
import 'element-closest-polyfill' // IE10 closest fix
import ExpansionPanel from './src/expansion-panel'
import FloatingLabel from './src/floating-label'
import NavDrawer from './src/nav-drawer'
Expand Down
18 changes: 9 additions & 9 deletions build/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import babel from '@rollup/plugin-babel'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import nodeResolve from '@rollup/plugin-node-resolve'

const pkg = require('../package.json')
const year = new Date().getFullYear()
Expand All @@ -11,8 +11,10 @@ const globals = {
}

const pluginsConfig = [
resolve(),
commonjs(),
nodeResolve(),
commonjs({
sourceMap: false
}),
babel({
babelHelpers: 'bundled',
exclude: 'node_modules/**',
Expand All @@ -26,13 +28,12 @@ const pluginsConfig = [
{
bugfixes: true,
forceAllTransforms: true,
loose: true,
modules: false,
spec: true,
useBuiltIns: 'entry',
// useBuiltIns: 'usage', // For complete polyfill
// shippedProposals: true,
corejs: {
version: 3,
proposals: false
version: '3.10',
proposals: true
}
}
]
Expand All @@ -43,7 +44,6 @@ const pluginsConfig = [
export default {
external,
input: 'assets/js/index.js',
// TODO: https://stackoverflow.com/questions/55112048/rollup-babel-preset-env-babel-polyfill
output: {
banner: `/*!\n * Djibe Material v${pkg.version} (${pkg.homepage})\n * Copyright 2011-${year} ${pkg.author}\n * Licensed under MIT (https://github.com/djibe/material/blob/master/LICENSE)\n */\n`,
file: 'js/material.js',
Expand Down
3 changes: 1 addition & 2 deletions css/material.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/material.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/material.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/material.min.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/css/docs.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/css/docs.min.css.map

Large diffs are not rendered by default.

Loading

0 comments on commit 499ccea

Please sign in to comment.