Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit c79366d

Browse files
author
Matt Goo
committed
fix(infrastructure): remove babel loader
1 parent aeb3f87 commit c79366d

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"fix": "npm-run-all --parallel fix:*",
1818
"lint:css": "stylelint \"packages/**/*.scss\"; stylelint --config=test/screenshot/.stylelintrc.yaml \"test/screenshot/**/*.scss\"",
1919
"lint:js": "eslint packages test scripts webpack.config.js demos/webpack.config.js karma.conf.js",
20-
"lint:ts": "tslint \"packages/**/*.ts\" \"test/**/*.ts\" \"scripts/**/*.ts\"",
20+
"lint:ts": "tslint --exclude \"test/**/*.d.ts\" \"packages/**/*.ts\" \"test/**/*.ts\" \"scripts/**/*.ts\"",
2121
"lint:html": "find test/screenshot/spec/ -name '*.html' | grep -v 'index.html$' | xargs htmllint",
2222
"lint:imports": "node scripts/check-imports.js",
2323
"lint": "npm-run-all --parallel lint:*",

scripts/webpack/js-bundle-factory.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,6 @@ class JsBundleFactory {
6969
}) {
7070
chunks = chunks || this.globber_.getChunks({inputDirectory, filePathPattern});
7171

72-
const babelLoader = {
73-
loader: 'babel-loader',
74-
options: {
75-
cacheDirectory: true,
76-
},
77-
};
78-
7972
return {
8073
name: bundleName,
8174
entry: chunks,
@@ -95,16 +88,11 @@ class JsBundleFactory {
9588
test: /\.ts$/,
9689
exclude: /node_modules/,
9790
use: [
98-
babelLoader,
9991
{
10092
loader: 'ts-loader',
10193
options: {configFile: tsConfigFilePath},
10294
},
10395
],
104-
}, {
105-
test: /\.js$/,
106-
exclude: /node_modules/,
107-
use: [babelLoader],
10896
}],
10997
},
11098
plugins: [

test/screenshot/spec/fixture.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
import 'url-search-params-polyfill';
2525
import bel from 'bel';
26-
import {ponyfill} from '../../../packages/mdc-dom';
26+
import {ponyfill} from '../../../packages/mdc-dom/index';
2727

2828
window.mdc = window.mdc || {};
2929

0 commit comments

Comments
 (0)