Skip to content

Commit e3ab363

Browse files
committed
Remove dependency to babel-plugin-jsx-pragmatic
1 parent 1eaff8c commit e3ab363

File tree

2 files changed

+0
-37
lines changed

2 files changed

+0
-37
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
"@babel/core": "^7.2.2",
6565
"@babel/preset-env": "^7.1.6",
6666
"babel-jest": "^24.1.0",
67-
"babel-plugin-jsx-pragmatic": "^1.0.2",
6867
"babel-preset-env": "^1.7.0",
6968
"eslint": "^5.2.0",
7069
"eslint-config-developit": "^1.1.1",

test/babel-transform-jsx.test.mjs

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -101,22 +101,6 @@ describe('babel-plugin-transform-jsx-to-htm', () => {
101101
});
102102
});
103103

104-
describe('options.html = true', () => {
105-
test('use explicit end tags instead of self-closing', () => {
106-
expect(
107-
compile('(<div />);', { html: true })
108-
).toBe('html`<div></div>`;');
109-
110-
expect(
111-
compile('(<div a />);', { html: true })
112-
).toBe('html`<div a></div>`;');
113-
114-
expect(
115-
compile('(<a>b</a>);', { html: true })
116-
).toBe('html`<a>b</a>`;');
117-
});
118-
});
119-
120104
describe('props', () => {
121105
test('static values', () => {
122106
expect(
@@ -203,24 +187,4 @@ describe('babel-plugin-transform-jsx-to-htm', () => {
203187
).toBe('html`<div/>`;');
204188
});
205189
});
206-
207-
describe('integration with babel-plugin-jsx-pragmatic', () => {
208-
test('JSX is still identified and import added', () => {
209-
expect(
210-
compile('const Foo = props => <div>hello</div>;', {
211-
tag: '$$html',
212-
plugins: [
213-
['babel-plugin-jsx-pragmatic', {
214-
// module to import:
215-
module: 'lit-html',
216-
// the name of the export to use:
217-
export: 'html',
218-
// whatever you specified for the "tag" option:
219-
import: '$$html'
220-
}]
221-
]
222-
})
223-
).toBe('import { html as $$html } from "lit-html";\n\nconst Foo = props => $$html`<div>hello</div>`;');
224-
});
225-
});
226190
});

0 commit comments

Comments
 (0)