Skip to content

Commit

Permalink
[fixed] Fix 'import from' => 'import'
Browse files Browse the repository at this point in the history
Babel is more strict now as for `import` syntax.

According to
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import

Import an entire module for side effects only, without importing any bindings.

import "my-module.js";
  • Loading branch information
AlexKVal committed Apr 17, 2015
1 parent ecde13b commit a58eab5
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 19 deletions.
10 changes: 5 additions & 5 deletions docs/client.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import from 'bootstrap/less/bootstrap.less';
import from './assets/docs.css';
import from './assets/style.css';
import 'bootstrap/less/bootstrap.less';
import './assets/docs.css';
import './assets/style.css';

import from './assets/carousel.png';
import from './assets/logo.png';
import './assets/carousel.png';
import './assets/logo.png';

import React from 'react';
import Router from 'react-router';
Expand Down
9 changes: 4 additions & 5 deletions docs/src/CodeMirror.client.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import CodeMirror from 'codemirror';
import from 'codemirror/mode/javascript/javascript';
import 'codemirror/mode/javascript/javascript';

import from 'codemirror/theme/solarized.css';
import from 'codemirror/lib/codemirror.css';
//import from '../vendor/codemirror/syntax.css';
import from './CodeMirror.css';
import 'codemirror/theme/solarized.css';
import 'codemirror/lib/codemirror.css';
import './CodeMirror.css';

export default {
IS_NODE: false,
Expand Down
2 changes: 1 addition & 1 deletion ie8/src.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import Popover from '../src/Popover';
import Carousel from '../src/Carousel';
import CarouselItem from '../src/CarouselItem';

import from './assets/carousel.png';
import './assets/carousel.png';

const dropdownInstance = (
<DropdownButton title='Dropdown'>
Expand Down
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import from 'es5-shim';
import 'es5-shim';
const testsContext = require.context('.', true, /Spec$/);
testsContext.keys().forEach(testsContext);
2 changes: 1 addition & 1 deletion tools/build.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint no-process-exit: 0 */

import from 'colors';
import 'colors';
import path from 'path';
import bower from './amd/build';
import lib from './lib/build';
Expand Down
2 changes: 1 addition & 1 deletion tools/lib/build.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import from 'colors';
import 'colors';
import path from 'path';
import { exec } from 'child-process-promise';

Expand Down
2 changes: 1 addition & 1 deletion tools/release-scripts/changelog.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import from 'colors';
import 'colors';
import path from 'path';
import { exec } from 'child-process-promise';

Expand Down
2 changes: 1 addition & 1 deletion tools/release-scripts/pre-conditions.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import from 'colors';
import 'colors';
import { exec } from 'child-process-promise';

function ensureClean() {
Expand Down
2 changes: 1 addition & 1 deletion tools/release-scripts/repo-release.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import from 'colors';
import 'colors';
import path from 'path';
import fsp from 'fs-promise';
import { exec } from 'child-process-promise';
Expand Down
2 changes: 1 addition & 1 deletion tools/release-scripts/test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import from 'colors';
import 'colors';
import { exec } from 'child-process-promise';

function test() {
Expand Down
2 changes: 1 addition & 1 deletion tools/release-scripts/version-bump.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import from 'colors';
import 'colors';
import path from 'path';
import fsp from 'fs-promise';
import semver from 'semver';
Expand Down

0 comments on commit a58eab5

Please sign in to comment.