Skip to content

Commit

Permalink
Remove esmodule syntax (ampproject#927)
Browse files Browse the repository at this point in the history
* v0.25.1

* Remove ESModules Package syntax since its not being used
  • Loading branch information
kristoferbaxter authored Sep 3, 2020
1 parent 2c37ce5 commit 641ffe9
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 105 deletions.
10 changes: 0 additions & 10 deletions config/dist-packaging/amp/package.json

This file was deleted.

6 changes: 0 additions & 6 deletions config/dist-packaging/amp/worker/package.json

This file was deleted.

10 changes: 0 additions & 10 deletions config/dist-packaging/debug/package.json

This file was deleted.

6 changes: 0 additions & 6 deletions config/dist-packaging/debug/worker/package.json

This file was deleted.

6 changes: 0 additions & 6 deletions config/dist-packaging/worker/package.json

This file was deleted.

17 changes: 0 additions & 17 deletions config/rollup.main-thread.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import compiler from '@ampproject/rollup-plugin-closure-compiler';
import { terser } from 'rollup-plugin-terser';
import replace from '@rollup/plugin-replace';
import copy from 'rollup-plugin-copy';
import { babelPlugin, removeDebugCommandExecutors, removeWorkerWhitespace } from './rollup.plugins.js';

const ESModules = [
Expand Down Expand Up @@ -51,14 +50,6 @@ const ESModules = [
},
plugins: [
removeWorkerWhitespace(),
copy({
targets: [
{
src: 'config/dist-packaging/debug/package.json',
dest: 'dist/debug',
},
],
}),
replace({
WORKER_DOM_DEBUG: true,
}),
Expand All @@ -78,14 +69,6 @@ const ESModules = [
},
plugins: [
removeWorkerWhitespace(),
copy({
targets: [
{
src: 'config/dist-packaging/amp/package.json',
dest: 'dist/amp',
},
],
}),
babelPlugin({
transpileToES5: false,
allowConsole: true,
Expand Down
49 changes: 0 additions & 49 deletions config/rollup.worker-thread.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import compiler from '@ampproject/rollup-plugin-closure-compiler';
import { terser } from 'rollup-plugin-terser';
import replace from '@rollup/plugin-replace';
import copy from 'rollup-plugin-copy';
import { babelPlugin } from './rollup.plugins.js';

// Compile plugins should always be added at the end of the plugin list.
Expand All @@ -41,14 +40,6 @@ const ESModules = [
sourcemap: true,
},
plugins: [
copy({
targets: [
{
src: 'config/dist-packaging/worker/package.json',
dest: 'dist/worker',
},
],
}),
replace({
WORKER_DOM_DEBUG: false,
}),
Expand All @@ -68,14 +59,6 @@ const ESModules = [
sourcemap: true,
},
plugins: [
copy({
targets: [
{
src: 'config/dist-packaging/debug/worker/package.json',
dest: 'dist/debug/worker',
},
],
}),
replace({
WORKER_DOM_DEBUG: true,
}),
Expand All @@ -95,14 +78,6 @@ const ESModules = [
banner: 'var WORKER_DOM_DEBUG = /log|development/i.test(location.hash);',
},
plugins: [
copy({
targets: [
{
src: 'config/dist-packaging/amp/worker/package.json',
dest: 'dist/amp/worker',
},
],
}),
babelPlugin({
transpileToES5: false,
allowConsole: true,
Expand All @@ -119,14 +94,6 @@ const ESModules = [
banner: 'var WORKER_DOM_DEBUG = /log|development/i.test(location.hash);',
},
plugins: [
copy({
targets: [
{
src: 'config/dist-packaging/amp/worker/package.json',
dest: 'dist/amp/worker',
},
],
}),
babelPlugin({
transpileToES5: true,
allowConsole: true,
Expand All @@ -144,14 +111,6 @@ const ESModules = [
banner: 'var WORKER_DOM_DEBUG = /log|development/i.test(location.hash);',
},
plugins: [
copy({
targets: [
{
src: 'config/dist-packaging/amp/worker/package.json',
dest: 'dist/amp/worker',
},
],
}),
babelPlugin({
transpileToES5: false,
allowConsole: true,
Expand All @@ -168,14 +127,6 @@ const ESModules = [
banner: 'var WORKER_DOM_DEBUG = /log|development/i.test(location.hash);',
},
plugins: [
copy({
targets: [
{
src: 'config/dist-packaging/amp/worker/package.json',
dest: 'dist/amp/worker',
},
],
}),
babelPlugin({
transpileToES5: true,
allowConsole: true,
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
"rollup": "2.26.9",
"rollup-plugin-analyzer": "3.3.0",
"rollup-plugin-babel": "4.4.0",
"rollup-plugin-copy": "3.3.0",
"rollup-plugin-terser": "7.0.1",
"sinon": "9.0.2",
"sirv": "1.0.0",
Expand Down

0 comments on commit 641ffe9

Please sign in to comment.